...

View Full Version : Getting the unix time from a date?



cyphix
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?

Thanks!

Kid Charming
06-19-2005, 07:00 PM
Check into strtotime() (http://us4.php.net/manual/en/function.strtotime.php).

cyphix
06-19-2005, 08:06 PM
Thanks I'll check it out! :thumbsup:

cyphix
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"?

Cheers!

SeeIT Solutions
06-20-2005, 11:47 PM
date("YmdHis",strtotime("June 28, 2005 10pm ET"));



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum