You could do somethng like this:

Code:
If Split(@TIME,":")[0] > "12"

? Val(Split(@TIME,":")[0]) - 12":"+Split(@TIME,":")[1]+" PM"
Else
? @TIME+" AM"
EndIf



Description of what this code is doing

Split the @TIME macro into two, using the ":" as the split
If 1st past of the split (Hour Part) is above 12 then this means it is PM, Else it means it is AM.

If PM take away 12 from the Hour, giving you a 12 hour clock.


Edited by Richard Farthing (2003-12-14 03:35 PM)