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

Help to convert Date and Time 1

Status
Not open for further replies.

CrysRptDev

Programmer
Joined
Feb 4, 2008
Messages
89
Location
US
Hi all,

Currently my Date and Time format is in GMT which means it is 4 hours ahead. I want to subtract 4 hours of this date field. For example, it shows as 01-Mar-2009 10:50:10PM but i want it to be 01-March-2009 6:50:10PM.

Any ideas?

Thanks,
T.
 
Use dateadd

Dateadd("h", -4, {Yourdatetimefield})

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top