# Calculate last day of month

Active3 hr before
Viewed126 times

monthcalculate
90%

You can also write a formula using the DATE, YEAR and MONTH functions to return the last day of the month:,The Excel EOMONTH function returns the last day of the month, n months in the past or future. You can use EDATE to calculate expiration dates, due dates, and other dates that need to land on the last day of a month. Use a positive value for...,The 2nd argument (months) of the EOMONTH function allows you to get the last day of the month in future or past months. When you use zero for months, EOMONTH will return the last day of the month in the same month.,To calculate the last day of a month based on a given date, you can use the EOMONTH function. In the example shown, the formula in cell B5 is:

`= EOMONTH(date, 0)`
88%

Setting day parameter to 0 means one day less than first day of the month which is last day of the previous month., Trainer damaging rear tyre , Can sanitary pads be a better alternate to gauze to reduce or stop bleeding? , 2 I can't repro the bug. This gives me correct date in all browsers: today = new Date(); new Date(today.getFullYear(), today.getMonth()+1, 0).toString(); – orad Apr 24 '14 at 22:35

```var month = 0; // January
var d = new Date(2008, month + 1, 0);
console.log(d.toString()); // last day in January```
72%

This is the truth, rest all is lie.,EOMONTH is my favorite function to calculate last day of a month. This function is specifically designed to for these kind of calculations.,The best way to calculate the last date of the month is by using EOMONTH Function. But apart from this, you can also use other methods (VBA).,And, if you want to calculate the last day of the current month the formula will be:

`EOMONTH(start_date, months)`
Where `serial_number` is any valid date of the month you are trying to find.
`serial_number`