dbradbury Posted December 16, 2009 Share Posted December 16, 2009 is it possible to convert 2009/12/17 to Thursday 17th December 2009? or even 17th December 2009...? Link to comment https://forums.phpfreaks.com/topic/185411-is-it-possible-to-convert-dates/ Share on other sites More sharing options...
cags Posted December 16, 2009 Share Posted December 16, 2009 Check out date and strtotime. $date = date('l d F Y', strtotime('2009/12/17')); Edit: That pattern isn't exactly what you asked for, see date in the manual for exact details. Link to comment https://forums.phpfreaks.com/topic/185411-is-it-possible-to-convert-dates/#findComment-978804 Share on other sites More sharing options...
dbradbury Posted December 16, 2009 Author Share Posted December 16, 2009 thank you.. with this is it possible to covert something that is already set... well, i have a post subject named 2009/12/17 lets say.. can i use php to use that from the subject title, and change it to Thursday 17th December 2009? also another question, completely unrelated to php, are you cags from phpacademy forum? lol Link to comment https://forums.phpfreaks.com/topic/185411-is-it-possible-to-convert-dates/#findComment-978807 Share on other sites More sharing options...
cags Posted December 16, 2009 Share Posted December 16, 2009 I'm not entirely sure what your asking. That method will take any date value inserted where I put '2009/12/17' and store it in the field $date. Yes I am the one and only. Link to comment https://forums.phpfreaks.com/topic/185411-is-it-possible-to-convert-dates/#findComment-978809 Share on other sites More sharing options...
dbradbury Posted December 22, 2009 Author Share Posted December 22, 2009 it doesnt matter, i worked it out but thank you very much for your help! Link to comment https://forums.phpfreaks.com/topic/185411-is-it-possible-to-convert-dates/#findComment-982609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.