Code tool

Days in Month

Enter a Gregorian year and choose a month to see its exact day count.

In-browser processingNo account requiredPrivacy details ↗

Enter a whole year from 1 through 9,999.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter a whole Gregorian year from 1 through 9,999.
  2. Choose a month.
  3. Calculate and read the exact day count.

Gregorian month lengths

The result follows the standard Gregorian month lengths and applies the century rule for leap years.

Strict year validation

Only whole years from 1 through 9,999 are accepted. The calculation runs locally in the browser.

GOOD TO KNOW

Common questions

Does February include leap years?

Yes. February has 29 days when the Gregorian leap-year rule applies; otherwise it has 28.

Are dates uploaded?

No. The calculation is performed locally in your browser.