iainlang Posted September 15, 2008 Share Posted September 15, 2008 Please, how do I turn a string whose contents equal, say, "2008-09-05" into "5th September 2008"? I've visited php.net but am just going round and round. (Is there any difference between the php4 and the php5 code?) TIA. Iain. Quote Link to comment https://forums.phpfreaks.com/topic/124281-solved-time-into-date-it-wont-take-long/ Share on other sites More sharing options...
Mchl Posted September 15, 2008 Share Posted September 15, 2008 date("format",strtotime("2008-09-05")) Lookup date() function on php.net to see what "format" should be in your case Quote Link to comment https://forums.phpfreaks.com/topic/124281-solved-time-into-date-it-wont-take-long/#findComment-641771 Share on other sites More sharing options...
iainlang Posted September 15, 2008 Author Share Posted September 15, 2008 Gordon Bennet, that was quick! I didn't even have time to turn round. As always, the answer was staring me in the face, but you pointed me to it. Many thanx. Quote Link to comment https://forums.phpfreaks.com/topic/124281-solved-time-into-date-it-wont-take-long/#findComment-641774 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.