You are viewing limited content. For full access, please sign in.

Question

Question

Convert Military Time to Standard Time

asked on September 4, 2014

Is there an activity or token formatting option built into Workflow to convert military time to standard time? For instance: 15:00:00 to 3:00 PM 

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on September 4, 2014 Show version history

Another way is to use an Assign Token Values activity and reformat the time. Take the military time token, check the box for "Apply Formatting" and give it the format you want, in your example, "h:mm:tt". 

You can read more about about Date/Time formatting here:

 

http://www.laserfiche.com/support/webhelp/workflow/9.1/en-us/LFWorkflow.htm#Resources/Tokens%20and%20Regex/Token Formatting--Date and Time.htm

3 0
replied on September 4, 2014

I knew there would be a smarter way to do it. smiley

0 0
replied on September 4, 2014

That worked! Thanks Darrell and Kevin

0 0

Replies

replied on September 4, 2014

You can use the "Date Token Calculator" tool in workflow to subtract 12 hours from the time (token you are using). Maybe using AM/PM in a conditional decision.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.