How to get 'month' from date sql?
Type the following SQL statement :
SELECT MONTH('2017/08/25') AS Month;
so when the ouput will display "08" because the month from the date above is "08".
For example, can go try at :
https://www.w3schools.com/sql/func_sqlserver_month.asp
SELECT MONTH('2017/08/25') AS Month;
so when the ouput will display "08" because the month from the date above is "08".
For example, can go try at :
https://www.w3schools.com/sql/func_sqlserver_month.asp
Comments
Post a Comment