This function calculates the last day of the month (end of month) that is the indicated number of months before or after the starting date. Typically, this function is used to evaluate expiry dates, due dates and other dates that are supposed to land at the end of a month.
EOMONTH(startdate,months)
This function has these arguments:
Argument | Description |
---|---|
startdate | Starting date |
months | Number of months before (negative) or after (positive) the starting date; if not an integer, the number is truncated |
Specify the date argument as a number (as in 37806.5) a string (as in "7/4/2003 12:00"), or a DateTime object, as in DATE(2003,7,4).
Accepts numeric, string, or DateTime object data for the startdate argument and numeric data for the months argument. Returns the serial number for the last day of the month.
EOMONTH(A3,6)
EOMONTH(R3C1,-4)
EOMONTH("2019/02/13",2) gives the result 43585
This function is available in product version 1.0 or later.
EDATE | MONTH | Date and Time Functions