This doesn't seem to work if the day is March 1st. It gives me February 31st as being yesterday. :(
Java get yesterday's date
java yesterday - Date Calendar
Java Get Example
Java Date Example
Java Get Month
Java program to get current date
How to get the current date in Java?