getmonth
The getmonth function gets the month number (1-12) from a datetime.
Alias: monthofyear
Syntax
`getmonth( Datetime )`
Arguments
- Datetime: A
datetime.
Example
This example returns 10:
print month = getmonth( datetime(2025-10-14) )The getmonth function gets the month number (1-12) from a datetime.
Alias: monthofyear
`getmonth( Datetime )`
datetime.This example returns 10:
print month = getmonth( datetime(2025-10-14) )