I have a datetime field in my database that contains the following information:
2012-05-03 17:34:01
I want to check the difference between the datetime field and now:
$now = date("Y-m-d H:i:s");
I am trying to figure out how many days elapsed between the time and the time recorded in the database field.
How can i achieve this?
source
share