how to select 5 days back date in sql server code example Example: 3 days back in sql server DATEADD(DAY, -3, GETDATE())