ReferenceScript nodesMath › Date and Time
Days in Month
How many days a month of a year has (0 for a month that isn't 1 to 12).
ƒDays in Month
Year2024Result
Month2
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Yearyear | int | 2024 | – |
Monthmonth | int | 2 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
In a graph
◆On Scene Start
ƒDays in Month
Year2024Result
Month2
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.