I am trying to get the difference between a initial date and the date as of right now. I understand when I get the date like this new Date("Feb 17, 2009 12:20:47");
the timezone it gives me is the timezone on my local computer.
I am wondering how I can get the dates in the Sydney Timezone.
var sydneyTime = new Date().toLocaleString("en-US", {timeZone: "Australia/Sydney"});
initDate = new Date("Jan 27, 2009 12:50:37");
rightNow = new Date(sydneyTime);
Question: How do I convert initDate
into Sydney time?