Jul 5, 2005 #1 TGJ Programmer Jan 31, 2005 64 CA I would like to know how i can manipulate the now() command to make it actually mean yesterday. basically I need now() - 1day Is there some way I can achieve this? perhaps now() is not the proper function to use, any help is much appreciated.
I would like to know how i can manipulate the now() command to make it actually mean yesterday. basically I need now() - 1day Is there some way I can achieve this? perhaps now() is not the proper function to use, any help is much appreciated.
Jul 5, 2005 1 #2 TonyGroves Programmer Aug 13, 2003 2,389 IE You could use:[tt] NOW() - INTERVAL 1 DAY[/tt] NOW() returns the current date and time. To get the current date, you can use CURDATE() . Upvote 0 Downvote
You could use:[tt] NOW() - INTERVAL 1 DAY[/tt] NOW() returns the current date and time. To get the current date, you can use CURDATE() .