How to find number of days between two dates using PHP?
Try using Carbon
$d1 = \Carbon\Carbon::now()->subDays(92); $d2 = \Carbon\Carbon::now()->subDays(10); $days_btw = $d1->diffInDays($d2);
Also you can use
\Carbon\Carbon::parse('')
to create an object of Carbon date using given timestamp string.