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

"Datetime" serial 1

Status
Not open for further replies.

endoflux

Technical User
Aug 6, 2001
227
US
Is there a function like DateSerial for Datetime? I'm just trying to produce a field reporting a given datetime minus 6 hours...
 
You can use the DateAdd with 'h' for the interval argument and a negative 6 for the number value.

DateAdd("h",-6,yourDate)
 
Another way:
[your DateTime field]-0.25

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top