View Single Post
Old 08-28-2004, 04:55 PM  
Arty
Confirmed User
 
Join Date: Nov 2002
Posts: 880
Quote:
Originally posted by BradM
You'll see what I am trying to go... hopefully lol


$yesterday = date(("F")+(("d")-1)+("Y"));

I am trying to minus 1 from the d, so I get "yesterday". How can I do this? I am probably making it too difficult. :p
$yesterday = date("F d Y",mktime(0,0,0,date("F"),date("d")-1,date("Y")));
Arty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote