Thread
:
quick php date help..
View Single Post
04-05-2010, 02:55 AM
natkejs
Confirmed User
Industry Role:
Join Date: Jan 2003
Location: Nomad Land
Posts: 1,640
Quote:
Originally Posted by
Brujah
Take a look at strtotime also, if you prefer. You can do a lot with it like; +1 day, -1 day, last monday, next tuesday, etc...
http://www.php.net/manual/en/function.strtotime.php
$yesterday = date('m/d/y', strtotime('-1 day'));
very neat, never used it like that
__________________
natkejs
View Public Profile
Find More Posts by natkejs