yelyah.nodrog Posted March 31, 2021 Posted March 31, 2021 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. 1
James Ainsworth Posted March 31, 2021 Posted March 31, 2021 Could you let us know how and where you are using the variable?
yelyah.nodrog Posted April 12, 2021 Author Posted April 12, 2021 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
Guest Paul Alexander Posted April 12, 2021 Posted April 12, 2021 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.
yelyah.nodrog Posted April 12, 2021 Author Posted April 12, 2021 @Paul Alexander That worked a treat ta!!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now