Last Day of Month Calculator

Enter a month and year to find the last day of that month. The calculator returns the final calendar date, the day of the week it falls on, and whether the year is a leap year — useful for billing cycles, deadlines, and date math.

Results

Last Day of Month

--

Full Date

--

Day of the Week

--

Leap Year?

--

Total Days in Month

--

Results Table

Frequently Asked Questions

How many days are in each month?

January, March, May, July, August, October, and December each have 31 days. April, June, September, and November have 30 days. February has 28 days in a standard year and 29 days in a leap year.

What is a leap year?

A leap year is a year with 366 days instead of the usual 365, achieved by adding an extra day (February 29) to the calendar. This adjustment keeps the calendar in sync with the Earth's orbit around the Sun.

When is a leap year?

A year is a leap year if it is divisible by 4, except for century years (e.g. 1900), which must be divisible by 400 to qualify. So 2000 was a leap year, but 1900 was not. The next leap year after 2024 is 2028.

Why does February have fewer days than other months?

February's shorter length dates back to the ancient Roman calendar. When Julius Caesar reformed the calendar, the extra days needed to align with the solar year were distributed across other months, leaving February with just 28 (or 29 in a leap year).

Which is the shortest month?

February is always the shortest month, with only 28 days in a standard year and 29 days in a leap year.

How do I find the last day of a month programmatically?

A common trick is to find the first day of the next month and subtract one day. In JavaScript, for example, new Date(year, month, 0).getDate() returns the last day of the previous month — which is the same as the last day of your target month if you pass month+1.

Why would I need to know the last day of a month?

Knowing the last day of a month is useful for billing cutoffs, loan payment schedules, contract end dates, payroll processing, project deadlines, and any date-sensitive financial or legal calculations.

Does the last day of a month change based on the year?

Only for February. In a leap year, February ends on the 29th instead of the 28th. All other months have the same number of days every year regardless of whether it is a leap year.

More Time & Date Tools