Home Forums SQL Server 2012 SQL 2012 - General DateAdd select from format yyyymm gets error? RE: DateAdd select from format yyyymm gets error?
sean.r.mason
SSC Veteran
Points: 245
More actions
February 15, 2019 at 6:00 pm
#2022204
This worked Perfect thank you very much.
Where disch_yyyymm = FORMAT(DATEADD(MONTH, -2, GetDate()), 'yyyyMM');