mikedaruke
Technical User
Quick question. I know using the time module I can get the date (month, day, year..etc)
I need to get yesterdays date. I tried the -1 to the current date, but of course on the 1st of the month, it would think yesterday is 0. I need to have it look at todays date: 4/1/05 and tell me yesterday was 3/31/05. I am sure I can do some caculations to figure this out. Just wondering if it was an easy way, or another module or fuction I can use. If not any ideas? Thanks!
I need to get yesterdays date. I tried the -1 to the current date, but of course on the 1st of the month, it would think yesterday is 0. I need to have it look at todays date: 4/1/05 and tell me yesterday was 3/31/05. I am sure I can do some caculations to figure this out. Just wondering if it was an easy way, or another module or fuction I can use. If not any ideas? Thanks!