Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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");
Source by phpf1.com #
 
PREVIOUS NEXT
Tagged: #Get #number #days #dates #PHP
ADD COMMENT
Topic
Name
7+2 =