To find the number of days until a particular date you need to write the following PHP script:
<?php
$date1="December 31,2015";
$date2=strtotime($date1);
$date3=ceil(($date2-time())/60/60/24);
echo "There are " . $date3 ." days until $date1.";
?>
The output of the above code is:
There are 3 days until December 31,2015.
0 Comment(s)