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)
- Test leap rule: 2000 is divisible by 4 and by 400.
- 2000 is a century leap year.
- 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)
- Test leap rule: 1900 is divisible by 100 but not by 400.
- 1900 is a common year, not a leap year.
- 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)
- July is a fixed 31-day month in the Gregorian calendar.
- Total days: 31 days.
- Weekdays: 23 weekdays, 8 weekend days.
Final Answer: 31 days (23 weekdays, 8 weekend days)