79674035

Date: 2025-06-20 23:28:37
Score: 0.5
Natty:
Report link

For the number of calendar days between two dates (not the number of 24 hour amounts):

$fecha = "13-10-2016 00:00:00";
$dt_epoch_days= floor(date('U',strtotime($fecha))/(60*60*24)); 
$now_epoch_days= floor(date('U')/(60*60*24)); 
echo $now_epoch_days-$dt_epoch_days;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: will