Date value and Eomonth formula in excel
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.
The EOMONTH function syntax has the following arguments:
Start_date required. A date that represents the starting date. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2009,5,23) for the 23rd day of May, 2009. Problems can occur if dates are entered as text.
Months Required. The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date.