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) 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. 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 Link to comment https://forums.phpfreaks.com/topic/238383-convert-date-string/#findComment-1225066 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.