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

Simple Hour() question

Status
Not open for further replies.

omacron

Technical User
Feb 5, 2002
149
Hi

I am sure making this harder then it is. I need to display the hour of a datetime field, problem is that;
Code:
Hour(Table.Date)
is giving it to me in military time. I want to display it with AM/PM on it. Been looking around and can't find anything on how to do this. I could do something like this;
Code:
select Hour(Table.Date)
        case 1:
             "1 AM"
....
This seems silly to me and there has to be an easier way.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top