Re: [PHP] today and yesterday (finding them)

2001-01-30 Thread James Purvins
and yesterday (finding them) $today = getdate(); $mon = $today[mon]; $mday = $today[mday]; $year = $today[year]; $text=sprintf("%s-%s-%s", $year, $mon, $mday); $date=$text; This code gets me today in the form -00-00 What do I need to do to get yesterday in that form? Than

Re: [PHP] today and yesterday (finding them)

2001-01-30 Thread Josh G
rnett" [EMAIL PROTECTED] To: "PHP General List" [EMAIL PROTECTED] Sent: Wednesday, January 31, 2001 3:10 PM Subject: [PHP] today and yesterday (finding them) $today = getdate(); $mon = $today[mon]; $mday = $today[mday]; $year = $today[year]; $text=sprintf("%s-%s-%s", $ye

Re: [PHP] today and yesterday (finding them)

2001-01-30 Thread Mohamed LRHAZI
Isnt it ? $yesterday = date("Y-m-d",mktime(0,0,0,date("m") ,date("d")-1,date("Y"))); Mohamed~ - Original Message - From: "Chuck Barnett" [EMAIL PROTECTED] To: "PHP General List" [EMAIL PROTECTED] Sent: Tuesday, January 3