We have two websites using the same MqSQL database. One in English the other in Czech. We use dates which are shown in the database as 2011-01-22 for example. When called via PHP the format is displayed as: 22 Jan, 2011. That’s fine for our English website but we need the Czech version to show for our Czech pages. Any ideas how to change how the date is parsed? Many thanks.
We have two websites using the same MqSQL database. One in English the other
Share
You need to use setlocale() function in PHP. Try this:
The code above prints “22 leden, 2012”, just like your English date format.