Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change military time to standard time 2

Status
Not open for further replies.

cutpen

Technical User
Jun 23, 2008
20
0
0
US
How can I change military time which is in a field, e.g. 1800 to standard time e.g. 6:00pm?
 
Thanks Rosemary, your have been a great help!
 
I am having the same problem only my field is a 'string'. When I use your formula it is asking for a number value in:

NumberVar T := {CONTHIST.ONTIME};

I'm assuming I need to convert this to a number field but I cannot find this formula anywhere.
 
Dear Frontsj,

Try:

Numbervar T := ToNumber({CONTHIST.ONTIME});

Regards,
ro

Rosemary Lieberman
rosemary-at-microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.

You will get answers more quickly if you read this before posting: faq149-3762
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top