date

In a shell script...how can I get yesterday's date in a var?

(i.e. date +%Y-%m-%d (-1) )
The above doesn't work, but it's basically what
I'm looking for.

Thanks.

If you are using GNU date you can do:

date --date="yesterday"