| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Date Manipulation Question|
I am currently using the NOW() variable in MySQL to generate a date that looks something like this:
My question is, how do I create a time that is 5 hours in the past? The time zone is too far ahead, thanks in advance,
SELECT DATE_SUB(NOW(), INTERVAL 5 HOUR)
SELECT NOW() - INTERVAL 5 HOUR
Hope this helps =)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved