Jump to content

Truncating the Date/Time variable for a summary


yelyah.nodrog
 Share

Recommended Posts

Afternoon all,

Is there a way to use the variable h_proposed_start_time but take the time off of the displayed output?

It is currently pulling back time/date like this: 2021-04-01T12:00:00.000Z

Which we want to use in he summary however we would like it to just be the date?

Many thanks

Hayley.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

We are using it in our Change BPM to populate the summary of the change request, We capture the change start time in the Pro cap using the h_proposed_start_time

Then set the summary and description in the BPM using this as the summary: 
Disruption Level: &[functions.pcf("changeDetails","h_disruption_level")] - &[functions.pcf("changeDetails","approvalLevel")] - &[functions.pcf("changeDetails","serviceArea")] - &[functions.pcf("changeDetails","h_proposed_start_time")] - &[functions.pcf("changeDetails","changeTitle")]

However the time itself comes back a bit of a mess:
2021-04-01T12:00:00.000Z 
So realistically would like to either clean it up so it just reads the date (preferably the right way around instead of 2021-04-01 or at the very least so that the time and date is a bit more legible?

01-04-2021 - 12:00:00 or something

Many thanks

H

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...