SQL today to yyyymmdd 2021.02.02 2021.01.23 CONVERT(int, GETDATE(), 112) AS 'yyyymmdd' FORMAT(GETDATE(),'yyyyMMdd') AS 'yyyymmdd'