How can I find the unix timestamp at midnight last Wednesday? My only approach would be to get the daily index and today's day number and subtract the difference, but I can think of several scenarios where this might fail, for example, a month before Wednesday happened.
I think more briefly, how do I find the date of the previous Wednesday?
Any help would be appreciated.
php datetime unix-timestamp
Alex s
source share