Jump to content

date() and setlocale


rantsh

Recommended Posts

Can anyone give me some pointers on the PROPER way to use date with setlocale so I could choose to print the date on english, spanish or anyother language?

 

ie I want to be able to output something like

 

if($_COOKIE['lang'] == "eng") {
     //prints January 1st, 1900;
} elseif($_COOKIE['lang'] == "esp") {
    //prints Enero 1, 1900
} else {
   ... print in default language
}

 

Thanks for any pointers you may share...

Link to comment
https://forums.phpfreaks.com/topic/37458-date-and-setlocale/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.