PDA

View Full Version : Localisation


Jan Neels
01-25-2012, 11:30 AM
Can anyone tell me how I can PHP use Dutch month an day names in the date_format function? and how I can tell Dreamweaver to do so?

Kind regards,

Jan Neels

edbr
01-27-2012, 02:41 AM
im not sure you can, its not a dreamweaver problem . the locale is from the server so you can try using
setlocale(LC_TIME, "Dutch", "nl_NL");

but it works using strftime
as in this snippet

<?php
setlocale(LC_TIME, "Dutch", "nl_NL");
$added=strftime("%A %d %B %Y, %H:%M");

echo $added;

?>

Jan Neels
01-27-2012, 12:21 PM
Thank you.

In wich file do I enter this codee?

Kind regards,

Jan neels

edbr
01-27-2012, 11:55 PM
any php file but its just an example really, as for the locale setting try adding it any file using a date functipn (php) it will depend on the locales set up on ypur server though i believe. just give it a try and see