PHP Interview Questions
How will you calculate days between two dates in PHP?
Calculating days between two dates in PHP
 
<?Php 
$date1 = date('Y-m-d');
$date2 = '2017-11-21';
$days = (strtotime($date1)-strtotime($date2))/(60*60*24);
echo $days;
?>

Output : 1063