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!

Subtract 5 hours from Date

Status
Not open for further replies.

Sid244

Technical User
Mar 6, 2005
8
0
0
US
I am trying to subtract 5 hours using the following equation:
I want to show the date and the time.

Date({DB_Table.date1}) + Time({DB_Table.date1}-Hour(5))

For example:
DB_Table.date1 is showing 20:55:42
and I want to subtract 5 hours so the new time is: 15:55:42.

Thanks in advance for the help!!!!
 
Thanks Ian. That is what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top