Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Get the month number from a datetime.
Another alias: monthofyear()
getmonth(
date)
Name | Type | Required | Description |
---|---|---|---|
date | datetime | ✓ | The date for which to get the month. |
An integer between 1-12 representing the month that contains the given date.
print month = getmonth(datetime(2015-10-12))
month |
---|
10 |