AnsweredAssumed Answered

Formatting Time

Question asked by JohnMaher on May 13, 2015
Latest reply on May 13, 2015 by philmodjunk

Title

Formatting Time

Post

I am trying to format a time input. With my current script below the input is "11:00 am" and the result is "11:00:00 AM"

GetAsText(MyTime - Time(If(Hour(MyTime) > 12; 12;0); 0;0)) & If (Hour(MyTime) > 11; " pm." ; " am.")

My question is how can I change the calculation to omit the seconds from the output?

Outcomes