Mega Code Archive

 
Categories / MSSQL Tutorial / Date Functions
 

Select DATEDIFF(month, 2001-12-01, 2002-09-30)

2> 3> select DATEDIFF(month, '2001-12-01', '2002-09-30') 4> GO -----------           9 (1 rows affected)