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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine AM / PM from Time value

Status
Not open for further replies.

c8ltgkue

MIS
May 1, 2007
57
GB
Hello All

Useing CR XI

I have a time field in my database which is stored in 24 hour clock formate (i.e 13:11:00) I want to find am / pm from time. Does any one know the function for this ?

Thanks in Advance.

C8
 
totext({table.date},"tt")

...will return AM or PM. It can be used in formatting like this also:

totext({table.date},"MM/dd/yyyy hh:mm:ss tt")

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top