View Single Post
Old 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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote