$date — date math in a shell script (sorta).

date —date=’1 day ago’

date —date=’2 days ago’