Using the current date new Date(), I would like to calculate the date for the following Wednesday using Javascript.
For example, the current date is today:
"Sun Apr 18 2022 15:00:00 GMT"
What I would like to do is get the date for the following Wednesday, which would be:
"Wed Apr 20 2022 15:00:00 GMT"
If the current day is a Wednesday, I would like to calculate the date for the following Wednesday.
How could I achieve this?