Java Q: On any given day, I want to determine the date on which (say) last Friday fell. Example: If I run my program today (ie. Wednesday, 05th Sep 12), I should get the result as "Last Friday was on 31st Aug 12". If I run it on Saturday, 08th Sep 12, the result should be 07th Sep 12, and so on (The date formatting is not strictly an issue here though)
Is there any available api, or do I need to write a program at length going back that many days based on the current day, etc?
Thank you!