I want to be able to find out the nearest Day of the week in the past based on the current date with date-fns. Say I need to find nearest Friday, Wednesday, Thursday etc in the past based on the current date.
I looked in to the documentation and can see only these tow methods https://date-fns.org/docs/closestTo and https://date-fns.org/v1.29.0/docs/getDay that I thought might help but the one I am looking for is missing.
Any thoughts?