I have a start date and an end date. I am using the following php code to determine the number of months elapsed:
$elapsed = $year1 12 + $month1 - $year2 12 + $month2;
This code works great. However, what tweaks would I need to make to determine the number of DAYS elapsed? Any help is greatly appreciated.