How would I go about finding the unix timestamp of midnight of the previous Wednesday? My only approach would be to get the day index and day number of today, and subtract the difference, but I can think of several scenarios where this would fail, for example, early in a month before a Wednesday has happened.
I guess, more concisely, how do I find the date of the previous Wednesday?
Any help would be appreciated.