note 41487 deleted from function.setlocale by nlopess
| From: | nlopess@php.net | Date: | Mon, 03 Jan 2005 19:08:06 +0000 |
| Subject: | note 41487 deleted from function.setlocale by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82651@lists.php.net to get a copy of this message | ||
Note Submitter: Melvin D. Nava
----
Get the Current Date in Spanish Format
<?php
setlocale (LC_TIME,"spanish");
$long_date = str_replace("De","de",ucwords(strftime("%A, %d de %B de
%Y")));
echo $long_date;
?>
Will print: Lunes, 12 de Abril de 2004
As seen in: http://mdnava.network.com.ve/
Bare in mind that this still depends on the server local time, editor should delete my other post.
Or this one if he prefers.