getmonth()

Get the month number (1-12) from a datetime.

Another alias: monthoyear()

Example

print month = getmonth(datetime(2015-10-12))