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.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Returns the integer number from 1-12 representing the month number of the given year.
The
monthofyear()
andgetmonth()
functions are equivalent
monthofyear(
date)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
date | datetime |
✔️ | The date for which to find the month number. |
An integer from 1-12 representing the month number of the given year.
print result=monthofyear(datetime("2015-12-14"))
Output
result |
---|
12 |