note 92850 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Tue, 11 Aug 2009 22:50:01 +0000 |
| Subject: | note 92850 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159355@lists.php.net to get a copy of this message | ||
Note Submitter: fuze
----
I wanted to get the full name of the current month. I didn't know about mktime() ->
echo date(F,mktime(0, 0, 0, $_POST['month'], 1, 1997)));
so I did this ->
echo date(F,((time() - (date(z,time()) * (24* 60 * 60))) + (28 * $_POST['month'] * (24 *
60 * 60))));