Possible Duplicate:
Getting the timestamp from last saturday (every week)?
If today is Sunday, April 8th… i would want my date varaible set to Saturday, April 7th.
If today is Saturday, April 7th… i would want my date variable set to Saturday, March 31st.
The answer here: How to get date on last/previous saturday in given timezone would work, except if today was Sunday, April 8th, it would give me Saturday, March 31st… which is not what i want.
not sure if you need it in a date format as that will give you a timestamp. if you need a date I can edit.
edit: