note 36387 added to function.strftime
| From: | kAlvaro at terra dot es | Date: | Wed, 08 Oct 2003 10:07:21 +0000 |
| Subject: | note 36387 added to function.strftime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58035@lists.php.net to get a copy of this message | ||
Please note you can apparently use the printf()'s format codes you can find in any C language
manual in order to improve format.
Example (remove leading zero from day of the month):
setlocale(LC_TIME, 'en');
echo strftime('%A %d de %B de %1Y');
echo '<br>';
echo strftime('%A %1d de %B de %1Y');
Result:
Wednesday 08 de October de 2003
Wednesday 8 de October de 2003
----
Manual Page -- http://www.php.net/manual/en/function.strftime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36387
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36387&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36387&report=yes
Search -- http://master.php.net/manage/user-notes.php