Days In Month
Calculator
Results
- Days in the month
- 29
- February is leap (1 = yes)
- 1
- Hours in the month
- 696
- Weeks in the month
- 4.142857
Time and date results
| Days in the month | 29 |
| February is leap (1 = yes) | 1 |
| Hours in the month | 696 |
| Weeks in the month | 4.142857 |
formula-map diagram
- Days in the month
- 29
- February is leap (1 = yes)
- 1
- Hours in the month
- 696
- Weeks in the month
- 4.142857
Time relationship
Formula
days in month = Gregorian month length (February = 29 in a leap year, else 28)= 29
Note
This is a simplified model: it uses fixed conversions (60 minutes per hour, 24 hours per day, 7 days per week, 365 days per year) and ignores leap years, daylight saving changes, public holidays and irregular month lengths. Check the result against a real calendar before relying on it.
Example: with the default inputs, calculator.timedate.days_in_month is 29.
More in Time and date
See all →Frequently asked questions
How many days are in a given month?+
Enter a year and a month (1-12) and the calculator returns that month's length: 31, 30, 28 or 29 days. It also shows the same length in hours and in weeks.
Why does February have 28 or 29 days?+
February gets 29 days in a leap year and 28 otherwise. The calculator applies the Gregorian leap-year rule: divisible by 4, except centuries, which must be divisible by 400.
Does the year matter for months other than February?+
No. January, March, May, July, August, October and December always have 31 days, and the others 30. The year only changes the result for February.
What happens if I enter a month outside 1 to 12?+
The month is clamped to the 1-12 range and rounded to a whole number, so 0 is read as January and 13 as December. Enter a valid month to be sure the result matches what you mean.
What do the hours and weeks figures mean?+
They are simply the number of days multiplied by 24 for hours, and divided by 7 for weeks. They are plain conversions of the month length, not business or working time.