note 54883 deleted from function.date by nlopess
| From: | nlopess@php.net | Date: | Sat, 30 Jul 2005 16:49:34 +0000 |
| Subject: | note 54883 deleted from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92767@lists.php.net to get a copy of this message | ||
Note Submitter: jtillery at netondas dot com
----
// Prints something like: Wednesday 15th of January 2003 05:51:38 AM
echo date("l dS of F Y h:i:s A");
Use this instead:
// Prints something like: Wednesday 15th of January 2003 05:51:38 AM
echo date("l jS of F Y h:i:s A");
That way if it's the 1st - 9th day of the mont you will not get the leading zero.