blogfisher Posted February 28, 2009 Share Posted February 28, 2009 Hello, Stuck with php time() & date(). Problem is that i am getting date information as "Sun Jul 27 19:56:21 +0000 2008" format. I want to convert them in to the information return by php time() function. For example, $currentTime = time(); return value = 1235754894 that i can convert to required string fortmat as $currentTime = date("l, F j Y", $currentTime); Is there a way to convert "Sun Jul 27 19:56:21 +0000 2008" format to "1235754894" returned by time() ? Link to comment https://forums.phpfreaks.com/topic/147298-help-on-converting-string-to-time-format/ Share on other sites More sharing options...
MadTechie Posted February 28, 2009 Share Posted February 28, 2009 strtotime() Link to comment https://forums.phpfreaks.com/topic/147298-help-on-converting-string-to-time-format/#findComment-773214 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.