Possible Duplicate:
Convert one date format into another in PHP
Starting from:
$date = '2012-09-09 03:09:00'
I would like to do two things.
- Remove the time from the string, so it will become "2012-09-09".
- Calculate how many years, days, and hours have passed since this date using the server current date/time/timezone.
Could anyone help me figure this out?
 
     
     
    