clankill3r Posted June 4, 2011 Share Posted June 4, 2011 Hi, is it possible to convert a string date like this: Wed Jun 01 09:37:13 +0000 2011 to something usefull? (a format more appropriate for a database) Quote Link to comment https://forums.phpfreaks.com/topic/238383-convert-date-string/ Share on other sites More sharing options...
jcbones Posted June 4, 2011 Share Posted June 4, 2011 So something like: $date = date('Y-m-d H:i:s',strtotime('Wed Jun 01 09:37:13 +0000 2011')); I believe that strtotime() will parse that date, post back if it doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/238383-convert-date-string/#findComment-1225065 Share on other sites More sharing options...
WebStyles Posted June 4, 2011 Share Posted June 4, 2011 http://pt2.php.net/manual/en/function.date.php Quote Link to comment https://forums.phpfreaks.com/topic/238383-convert-date-string/#findComment-1225066 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.