Days apart with strtotime
Posted: Wed Dec 15, 2010 11:11 am
I need to find how many days are apart from two timestamps.
I'm currently trying something like this which isn't working.
I'm currently trying something like this which isn't working.
Code: Select all
$today = strtotime(date('m/d/Y'));
$db_val = $my_db_time; // in strtotime format
$days_between = date("d", $today - $db_val);