I want to get my local time for a given time in a different time zone.
I am getting the time (6/12/2020 4:23:00 PM) and the time zone (America/New_York) from the API.
How to get my local time using these values.
I found the way to get the time in a different time zone.
var aestTime = new Date().toLocaleString("en-US", {timeZone: "Australia/Brisbane"});
console.log('AEST time: '+ (new Date(aestTime)).toISOString())
But I need the other way around.