powered by
It acts similiarly to Excel's MONTH function. It extracts the month part from the date.
MONTH(date)
Enter the date to get the month from.
In this case the function will give you 12 as it is the month of the date we have specified.Function will always return numeric class.
# NOT RUN { MONTH(DATE(2020,12,1)) # }
Run the code above in your browser using DataLab