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!

Extracting Medium Time from General Date 1

Status
Not open for further replies.

annie52

Technical User
Mar 13, 2009
164
0
0
US
I have a Date/Time field with a General Date (6/19/2007 5:34:23 PM) called MilTxnDate.

I am able to extract the Short Date (6/19/2007) by using DateValue([MilTxnDate]) but can't figure out how to extract the Medium Time (5:34 PM). I do not want the seconds.
 
What about this ?
Format(MilTxnDate,"h:nn AM/PM")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Excellent! PH, you've always been my hero. Thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top