note 46764 deleted from function.getdate by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 26 Oct 2004 23:16:43 +0000 |
| Subject: | note 46764 deleted from function.getdate by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79151@lists.php.net to get a copy of this message | ||
Note Submitter: lalit jairath
----
To the previous post: you might as well do this:
$d = getdate();
$d = sprintf("%4d-%02d-%02d", $d["year"], $d["mon"],
$d["mday"]);