Days in Month Calculator
Return the number of days in a Gregorian calendar month.
Description
Return the number of days in a Gregorian calendar month.
Days in Month Calculator: Return the number of days in a Gregorian calendar month.
When to use Days in Month
Use this calendar calculation when dates follow the stated calendar and you need a reproducible boundary, interval, ordinal, week, or classification result.
- Year
- Required integer input.
- Month
- Required integer input.
How Days in Month works
Return the number of days in a Gregorian calendar month. The tool evaluates the supplied inputs together and returns the named outputs below; it does not infer omitted operating conditions or change the units shown.1
- Days
- The resulting days returned as an integer.
Limitations and assumptions
- Calendar dates are not elapsed-time instants by themselves. Time zones, daylight-saving transitions, locale-specific week rules, inclusive endpoints, holidays, historical calendar reforms, and proleptic-calendar assumptions can change an apparently simple result.
- Use finite inputs in the displayed units and preserve more precision than the final presentation requires. Independently verify safety-critical, financial, compliance, or production decisions.
Alternative or Complementary approaches
Store instants with an explicit time zone when time of day matters, and document whether interval endpoints are inclusive. Supply a jurisdiction-specific holiday calendar for business-day decisions.
References
-
Calendar date — Wikipedia contributors
Similar or alternative tools
- Days in Quarter Calculator
Return the number of calendar days in the Gregorian quarter containing an ISO date.
- Date to Julian Day Number Converter
Convert a Gregorian calendar date to its Julian Day Number.
- Date Difference Calculator
Calculate the signed number of calendar days between two ISO dates.