Use the Time library functions makeTime and breakTime. Initialize a tm_elements structure with day, month, year etc and use makeTime to convert that to time_t. Subtract 86400L from the time_t and then use breakTime to convert that back to a tm_elements which will then contain the correct day,month,year etc for the previous day.
Pete