Results 1 to 2 of 2

Thread: Question about Unix timestamp and PHP

  1. #1

    Question about Unix timestamp and PHP

    I dig PHP's handy date() function that allows you to format a date string out of a timestamp. But I have a project where it would be very useful if I could reverse generate a timestamp from a date/time. For example, I input something like "10/20/2004 12:01:00 PM" and the script generates the corresponding Unix timestamp.

    Anyone know how to do this with PHP?

  2. #2

    Re:Question about Unix timestamp and PHP

    Nevermind! strtotime(), I just found it in the PHP ref guide.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •