File manager - Edit - /home/autoph/public_html/connect/home/date_diff.php
Back
<?php echo "Today is " . date("Y/m/d") . "<br>"; $currentDateIs = date("Y/m/d"); $oldDates = '1977/10/24'; // Build example data $timeStart = strtotime($oldDates); $timeEnd = strtotime($currentDateIs); // Adding current month + all months in each passed year $numMonths = 1 + (date("Y",$timeEnd)-date("Y",$timeStart))*12; // Add/subtract month difference $numMonths += date("m",$timeEnd)-date("m",$timeStart); echo $numMonths/12; ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings