Returns the number of days in the month specified in the given date.
Syntax
Remarks
Alternatively, =DAY(EOMONTH("2/1/2019";0)) can also be used to get the number of days in a given month.
Examples
Formula | Result |
=DAYSINMONTH("3 Aug, 2020") | 31 |
=DAYSINMONTH("2/1/2019") | 28 |
=DAYSINMONTH(TODAY()) | 30 |
Possible Errors
Errors | Meaning |
#N/A! |
|
#NAME! |
|
#VALUE! |
|
#REF! |
|
Similar Functions