Jump to content


Photo

Turn Jan 01, 2006 Into Timestamp


  • Please log in to reply
1 reply to this topic

#1 yarub

yarub
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts
  • LocationSioux City, IA

Posted 15 August 2006 - 11:22 PM

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.

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 15 August 2006 - 11:23 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users