Mega Code Archive

 
Categories / MSSQL Tutorial / Date Functions
 

Select DATEPART(m,2002-09-30)

2>  select DATEPART(m,'2002-09-30') 3> GO -----------           9 (1 rows affected) 1>