Dec 17, 2011

PHP – Display date and time in spanish

<?php
setlocale(LC_TIME, 'es_MX');
date_default_timezone_set('Mexico/General');
print utf8_encode( strftime("%A, %d de %B de %Y", time()) );
?>

No comments: