note 117782 deleted from function.strtotime by cmb
| From: | cmb@php.net | Date: | Sun, 09 Aug 2015 11:37:52 +0000 |
| Subject: | note 117782 deleted from function.strtotime by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203298@lists.php.net to get a copy of this message | ||
Note Submitter: info at namasteui dot com
----
On 31st of every month you will get a wrong month value while using date() or strtotime() functions.
In that case you need to pass the date of the first day of the current month as a second parameter
to the strtotime() function.
http://www.namasteui.com/php-date-and-strtotime-return-wrong-months-on-31st/