I know I saw this a while back, but after searching I couldn't find it.
I have two dates.
$date1 = 2000-08-21 22:41:36 $date2 = 2000-08-21 22:54:26
How do I do: $date2 - $date1
All help would be appreciated.
Thank You
You really should use the unix timestamp types over the date type as just about all of the functions in php revolve around it, if you use the date type then you'll basicly have to around re-inventing the wheel.
With a timestamp all you have to do is subtract the number of miliseconds from the time value and then you can just use a simple time formating command to print it to any format you wish.
yes but how ?