Jump to content

Truncating the Date/Time variable for a summary


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


  • 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:
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




Link to comment
Share on other sites

Guest Paul Alexander

Hi @yelyah.nodrog

Not sure if this is what you're looking for, but we use the date formatter in the iBridge for these sorts of things.



Obviously you can change the input-output formats if required, but we've found that the output format of d-M-Y works for us.



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
  • Create New...