This post was very useful Getting the date of next Monday when it comes to figuring out how to get the next Monday in UTC time. I have the following problem.
I want to get the next Monday in user A's timezone and then convert that to user's B timezone. How can I do that?
So if user A's timezone is America/New_York and the date is January 2, 2022, I want to get the next Monday in that timezone. Then convert that date to user B's timezone. How can I do that using javascript or moment js?
The goal is to get the next availability of a user so that another user in a different timezone can set up an appointment with him.