Answers for "how to get number of days between two dates in php complete program find year month day"

PHP
2

Get the number of days between two dates in PHP

$startDate = new DateTime("2019-10-27");
$endDate = new DateTime("2020-04-11");

$difference = $endDate->diff($startDate);
echo $difference->format("%a");
Posted by: Guest on January-14-2021

Code answers related to "how to get number of days between two dates in php complete program find year month day"

Browse Popular Code Answers by Language