How can take date difference using php?
I tried some code but showing error: date_format() expects parameter 1 to be DateTimeInterface, object given
This is the code I have tried
$checkin_from = 1502143200000
$reserve_to = 1502229600000
$days = round(abs(strtotime(date_format($checkin_from , 'd.m.Y')) - strtotime(date_format($reserve_to, 'd.m.Y'))) / 86400);