Mega Code Archive

 
Categories / MSSQL / Date Timezone
 

Combine the CONVERT()and the DATEADD() functions to format a return date value nine months before September 8, 1989

1> 2> -- Combine the CONVERT()and the DATEADD() functions to format a return  date value nine months before September 8, 1989: 5> 6> SELECT CONVERT(VarChar(20), DATEADD(m, -9, '9-8-1989'), 101) 7> GO -------------------- 12/08/1988 (1 rows affected) 1>