Mega Code Archive

 
Categories / MSSQL Tutorial / Date Functions
 

Select DATEPART(month, 2002-09-30 11

3>  select DATEPART(month, '2002-09-30 11:35:00') 4> GO -----------           9 (1 rows affected)