Answers for "difference entre deux date en php"

PHP
6

difference entre deux date php

$datetime1 	= new DateTime('2020-10-11 16:52:52');
$datetime2 	= new DateTime('2020-10-13 16:52:52');
$interval 	= $datetime1->diff($datetime2);

echo $interval->format('%a days');
Posted by: Guest on June-26-2020

Code answers related to "difference entre deux date en php"

Browse Popular Code Answers by Language