Jump to content

Archived

This topic is now archived and is closed to further replies.

yarub

Turn Jan 01, 2006 Into Timestamp

Recommended Posts

How would I change Jan 01, 2006 into a ten-digit timestamp? I know how to create a timestamp with time() and I know how to turn a timestamp into the format Jan 01, 2006. Now I need to know how to change the Jan 01, 2006 back into a timestamp.

Share this post


Link to post
Share on other sites
start with strtotime, if that won't work with the full string, then you will have to break it apart into something that it will accept.

http://www.php.net/strtotime

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.