note 41487 added to function.setlocale

From: Date: Mon, 12 Apr 2004 08:13:41 +0000
Subject: note 41487 added to function.setlocale
Groups: php.notes 
Request: Send a blank email to php-notes+get-68009@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.setlocale.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41487 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41487&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41487&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68009) next »