You can also use the php functions:mktime -- Get UNIX timestamp for a dateReturns the Unix timestamp corresponding to the arguments given. This timestamp is a long integer containing the number of seconds between the Unix Epoch (January 1 1970) and the time specified.

And

getdate -- Get date/time informationReturns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given