How it works
Find the length of a Gregorian calendar month, including February in leap years. Month numbers run from January 1 to December 12.
Inputs and units
| Input | Example value | What to enter |
|---|---|---|
| Year | 2,028 | Enter a numeric value. Use a whole number. Must be greater than zero. Allowed range: 1–9,999. |
| Month number | 2 | Enter a numeric value. Use a whole number. Must be greater than zero. Allowed range: 1–12. |
Worked example
Show example inputs and results
This example is generated by the same calculation engine using the starting values in the form. Your own inputs produce your own result.
- Year
- 2,028
- Month number
- 2
Complete example results
- Days in month
- 29
Reading the result
Elapsed calendar time differs from completed years or months. Check interval endpoints, leap-year conventions and any working-day scope.
Questions and answers
Can I use the example values for my own calculation?
The example values illustrate the calculation. Replace every input with your own information, especially dates, rates and the selected operation.
Why are some results rounded?
Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.
Are my inputs sent to a server?
The calculator processes inputs in your browser. Its code does not send your values to a server.