Pages

Men

rh

7/17/2012

Month Function in SQL Server

MONTH()
This is used to get the month number from the date.

Example:
SELECT MONTH(getdate()) AS 'Month'
 
Output :
Month
7

Back

No comments :

Post a Comment