I am working with momentjs and converting dates to different time zones using convertedDate = moment().utcOffset(timezone).format()
. This works well but it is a string and I need to transform it to date object.
I've tried new Date(convertedDate)
and moment().utcOffset(timezone).toDate()
but that returns my current timezone as a date object. How can I keep the converted timezone?