change current date to past date
DATEADD(DAY, -30, GETDATE())Â -- this will set date to previous 30 days