Returns the serial number that represents the date that is the indicated number of months before or after a specified date (the start_date). Use EDATE to calculate maturity dates or due dates that fall on the same day of the month as the date of issue.
Returns the serial number for the last day of the month that is the indicated number of months before or after start_date. Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.
Calculates the fraction of the year represented by the number of whole days between two dates (the start_date and the end_date). Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or obligations to assign to a specific term.
Tags:
return:
fraction of the year
access:
public
Parameters:
mixed
$startDate
Excel date serial value (float), PHP date timestamp (integer) or date object, or a standard date string
mixed
$endDate
Excel date serial value (float), PHP date timestamp (integer) or date object, or a standard date string