note 103558 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Wed, 20 Apr 2011 14:33:33 +0000 |
| Subject: | note 103558 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178999@lists.php.net to get a copy of this message | ||
Note Submitter: jon at jonwright dot ru
Reason: bad code
----
"m Numeric representation of a month, with leading zeros"
Doesn't return a leading zero if you do the following.
echo '2011-'.(date('m')-2).'-01';
Assuming the month is this month (April) that should return:
// 2011-02-01
But instead of gives me:
// 2011-2-01