Calendar
DaysInMonth
compute the number of days in a given month
Calling Sequence
Parameters
Description
Examples
Compatibility
DaysInMonth( year, month )
year
-
integer; the year in which the month occurs
month
integer; the numeric value (1..12) of the month
The DaysInMonth( year, month ) command computes the number of days in the month month of the year year. It is necessary to specify the year in order to take account of leap years.
with⁡Calendar:
DaysInMonth⁡2000,2
29
DaysInMonth⁡2001,2
28
DaysInMonth⁡1900,2
DaysInMonth⁡1995,10
31
DaysInMonth⁡1582,10
21
The Calendar[DaysInMonth] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
Calendar[DaysInYear]
Download Help Document