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
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
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
3 matches
Mail list logo