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. Quote 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? Quote 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. Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.