How to find number of days between two dates using PHP?
I'm using Carbon in my composer projects for this and similar purposes.
It'd be as easy as this:
$dt = Carbon::parse('2010-01-01'); echo $dt->diffInDays(Carbon::now());