I need to get yesterday's date and format it YYYYMMDD

I know that you can use
Code:
Date today = new Date();
to get the date, but how do I get yesterday's date and format it?

Thanks!