peppericious Posted November 7, 2011 Share Posted November 7, 2011 To echo this: Posted on: October 23rd 2011 ... I'm querying my db with this: DATE_FORMAT(creation_date, '%M %D %Y') What if I wanted to echo this: 23. Oktober, 2011 ... that is, to display the date as it would be shown in German? TIA if you can help. Link to comment https://forums.phpfreaks.com/topic/250623-formatting-a-date-in-german/ Share on other sites More sharing options...
haku Posted November 7, 2011 Share Posted November 7, 2011 How is the date actually stored in your database? Link to comment https://forums.phpfreaks.com/topic/250623-formatting-a-date-in-german/#findComment-1285873 Share on other sites More sharing options...
peppericious Posted November 7, 2011 Author Share Posted November 7, 2011 As a timestamp. Link to comment https://forums.phpfreaks.com/topic/250623-formatting-a-date-in-german/#findComment-1285874 Share on other sites More sharing options...
ManiacDan Posted November 7, 2011 Share Posted November 7, 2011 You can set the locale of your PHP scripts. Link to comment https://forums.phpfreaks.com/topic/250623-formatting-a-date-in-german/#findComment-1285884 Share on other sites More sharing options...
peppericious Posted November 7, 2011 Author Share Posted November 7, 2011 Great. Will look into that. Thanks. Link to comment https://forums.phpfreaks.com/topic/250623-formatting-a-date-in-german/#findComment-1285894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.