Home โ€บ Date & Time Calculators โ€บ Days in Month Calculator

Days in Month Calculator

Knowing the exact number of days in a specific calendar month is essential for financial pro-rating, monthly billing cycles, payroll allocations, and

Time & Date
year
Formula & Methodology
Standard Months: Jan (31), Mar (31), Apr (30), May (31), Jun (30), Jul (31), Aug (31), Sep (30), Oct (31), Nov (30), Dec (31) February Common Year = 28 days February Leap Year = 29 days (if Year mod 4 = 0 and (Year mod 100 โ‰  0 or Year mod 400 = 0))

Under the Gregorian calendar, a year is a leap year if it is evenly divisible by 4, except for century years (ending in 00), which must also be divisible by 400. In leap years, February has 29 days instead of 28.

Total Days in February 2024

29 days

Overview

Knowing the exact number of days in a specific calendar month is essential for financial pro-rating, monthly billing cycles, payroll allocations, and lease agreements. The Days in Month Calculator determines the exact day count, weekday totals, weekend totals, and leap year status for any month in any Gregorian year.

While most months have a fixed duration (30 or 31 days), February fluctuates between 28 and 29 days depending on whether the year meets leap year criteria. This tool evaluates the complete 400-year leap year rule to provide accurate month lengths for historical, current, and future years.

Worked Examples

Example 1: February in a Century Leap Year (February 2000)

Year = 2000, Month = February (2)

  1. Test leap rule: 2000 is divisible by 4 and by 400.
  2. 2000 is a century leap year.
  3. February 2000 has 29 days.
Final Answer: 29 days (Leap Year, 21 weekdays, 8 weekend days)

Example 2: February in a Century Common Year (February 1900)

Year = 1900, Month = February (2)

  1. Test leap rule: 1900 is divisible by 100 but not by 400.
  2. 1900 is a common year, not a leap year.
  3. February 1900 has 28 days.
Final Answer: 28 days (Common Year, 20 weekdays, 8 weekend days)

Example 3: July in Any Year (July 2026)

Year = 2026, Month = July (7)

  1. July is a fixed 31-day month in the Gregorian calendar.
  2. Total days: 31 days.
  3. Weekdays: 23 weekdays, 8 weekend days.
Final Answer: 31 days (23 weekdays, 8 weekend days)

How to Use This Calculator

  1. Enter the 4-digit calendar year.
  2. Select the month from the dropdown menu.
  3. View the total days in the month alongside weekday and weekend totals.
  4. Check the leap year status and calendar quarter.

Frequently Asked Questions

What is the exact mathematical rule for leap years?
A year is a leap year if it is divisible by 4, except century years, which must be divisible by 400. For example, 2000 was a leap year, but 1900 and 2100 are common years.
Why does February have fewer days than other months?
February inherited its 28-day length from the ancient Roman calendar established by Numa Pompilius and modified under the Julian reform.
Which months always have 30 days?
Four months have 30 days: April, June, September, and November (remembered by the rhyme Thirty days hath September, April, June, and November).
How many total days are in a leap year versus a common year?
A common year contains 365 days (52 weeks + 1 day), whereas a leap year contains 366 days (52 weeks + 2 days).
Can this tool calculate months in historical or future years?
Yes. It supports years from 1 to 9999 under the standardized Gregorian calendar model.
Reviewed & Authored by: OnlineConvers Editorial Team ยท Last Updated: 2026-10-06
Evaluates month lengths against the full 400-year Gregorian leap year cycle. Day-of-week distribution is computed via UTC calendar iteration.