This function calculates the date for the last day of the month (end of month) that is the indicated number of months before or after the starting date.
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 a DateTime object.
EOMONTH(A3,6)
EOMONTH(R3C1,-4)
EOMONTH("2004/01/09",2) gives the result 3/31/2004 12:00:00 AM
This function is available in product version 1.0 or later.
EDATE | MONTH | Date and Time Functions