MONTH() Function in SQL Server Last Updated : 11 Jan, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report MONTH() function : This function in SQL Server is used to return the month of the year i.e, from 1 to 12 for a date stated. Features : This function is used to find the month of the year for a date specified. This function comes under Date Functions. This function accepts only one parameter i.e, date. This function can also include time with the stated date. Syntax : MONTH(date) Parameter : This method accepts only one parameter as given below : date : Specified date from which the month of the year is to be returned. Returns : It returns the month of the year i.e, from 1 to 12 for a date specified. Example-1 : Using MONTH() function and getting the month of the year from the date specified. SELECT MONTH('2020/01/02'); Output : 1 Example-2 : Using MONTH() function with a variable and getting the month of the year from the date specified. DECLARE @date VARCHAR(50); SET @date = '2020/07/05'; SELECT MONTH(@date); Output : 7 Example-3 : Using MONTH() function with date as parameter which includes time as well. SELECT MONTH('2018/11/22 07:44'); Output : 11 Example-4 : Using MONTH() function with a variable and a date as parameter which includes time as well. DECLARE @date VARCHAR(50); SET @date = '2020/09/30 23:59'; SELECT MONTH(@date); Output : 9 Application : This function is used to find the month of the year from the date specified. Comment More infoAdvertise with us Next Article LOG() Function in SQL Server N nidhi1352singh Follow Improve Article Tags : SQL DBMS-SQL SQL-Server Similar Reads LOG() Function in SQL Server The LOG() function returns the logarithm of a specified number or the logarithm of the number to the specified base. Syntax : LOG(number, base) Parameter : LOG() function accepts two-parameters as mentioned above and described below. number - This parameter hold a number which is greater than 0. bas 1 min read ISDATE() Function in SQL Server ISDATE() function : This function in SQL Server is used to check if the specified expression is a valid date or not. Features : This function is used to find if the stated date is valid or not. This function comes under Date Functions. This function accepts only one parameter i.e, an expression. Thi 2 min read QUOTENAME() Function in SQL Server QUOTENAME() function : This function in SQL Server is used to return a Unicode string with delimiters added in order to make the string a valid SQL Server delimited identifier. Features : This function is used to find a Unicode string with delimiters added. This function accepts only strings and del 3 min read MONTH() function in MySQL MySQL MONTH() function returns the month from the given date. It returns a month value between 1 and 12 or returns 0 when the month part of the date is 0. It's a useful SQL function for date manipulation and analysis, particularly when dealing with reports or queries that require month-based groupin 3 min read DAY() Function in SQL Server DAY() function : This function in SQL Server is used to return the day of the month i.e, from 1st to 31st for date stated. Features : This function is used to find the day of the month for a date specified. This function comes under Date Functions. This function accepts only one parameter i.e, date. 2 min read SUM() Function in SQL Server The SUM() function in SQL Server is an essential aggregate function used to calculate the total sum of values in a numeric column. It aggregates data by summing up all values in the specified column for the rows that match the criteria of the query.In this article, We will learn about SUM() Function 3 min read Like