getmonth()
Get the month number (1-12) from a datetime.
Another alias: monthoyear()
Example
print month = getmonth(datetime(2015-10-12))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Get the month number (1-12) from a datetime.
Another alias: monthoyear()
print month = getmonth(datetime(2015-10-12))