Mega Code Archive

 
Categories / MSSQL / Date Timezone
 

DATEPART(month, 4-29-1988)

1> 2> 3> 4> -- DATEPART() returns an integer value 5> 6> 7> 8> SELECT DATEPART(month, '4-29-1988') 9> GO -----------           4 (1 rows affected)