I love you PHP: more date goodness

Want to display a date in a language other than English, without switching your whole installation to some other language? It’s so easy …

setlocale(LC_TIME, "fr_FR");
$datefacture = strftime("%e %B %Y");
echo $datefacture;

This entry was posted in PHP and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>