Thread
:
quick php date help..
View Single Post
04-04-2010, 02:39 PM
natkejs
Confirmed User
Industry Role:
Join Date: Jan 2003
Location: Nomad Land
Posts: 1,640
or
<?php
echo date("m/d/y",mktime(0,0,0,0,-1,0));
?>
that tells it to generate a date using todays date -1 day, so that would be yesterday.
change -1 to -7 and it will be one week ago and so on and so forth...
__________________
natkejs
View Public Profile
Find More Posts by natkejs