Date Functions MSSQL Tutorial

2>  select DAY('2002-09-30')
3> GO
-----------
         30
(1 rows affected)
1>