View Full Version : Getting the unix time from a date?
06-19-2005, 06:58 PM
Hey guys.. is there anyway I could get the unix time (time()) from a date like this for example: June 28, 2005 10pm ET or something similar at least?
I've looked into mktime() but not sure if I really understand it all or if this is what it is for?
06-19-2005, 07:00 PM
Check into strtotime() (http://us4.php.net/manual/en/function.strtotime.php).
06-19-2005, 08:06 PM
Thanks I'll check it out! :thumbsup:
06-20-2005, 05:59 PM
Is there a similar function to get a MYSQL timestamp (YYYYMMDDHHMMSS) from a string such as "June 28, 2005 10pm ET"?
06-20-2005, 11:47 PM
date("YmdHis",strtotime("June 28, 2005 10pm ET"));
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.