I trying to find a script which will round down a date to the nearest day and tell me how many days different's between them. Want it to return like this:
0 = today 1 = yesterday 2 = 2days ago... you get the idea
This is what ive got so far.
$delta = ((strtotime(date('d/m/y', time())) - strtotime(date('d/m/y', $time))))/86400;
But this returns like this:
0 = for today 30 = yesterday 61 = for the day before....
It driving me mad.....