Danny620 Posted July 26, 2009 Share Posted July 26, 2009 how would i go about changing this Sun 26th Jul 11:20 PM into this format 2009-07-17 23:17:21 Link to comment https://forums.phpfreaks.com/topic/167542-change-this-sun-26th-jul-1120-pm-into-this-date/ Share on other sites More sharing options...
vineld Posted July 26, 2009 Share Posted July 26, 2009 Is the year not included? Why that format? How do you know which year it is? Since that is not a valid datetime format I think you will have to write a regular expression and perhaps insert the (current?) year inbetween month and time, then convert it. Link to comment https://forums.phpfreaks.com/topic/167542-change-this-sun-26th-jul-1120-pm-into-this-date/#findComment-883481 Share on other sites More sharing options...
Danny620 Posted July 26, 2009 Author Share Posted July 26, 2009 vineld may i pm you with some code that i am trying to get working Link to comment https://forums.phpfreaks.com/topic/167542-change-this-sun-26th-jul-1120-pm-into-this-date/#findComment-883482 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.