I'm looking for how others are performing a conversion of a UTC Date (or any time zone date) to EST Date in Javascript. The requirement is to have a date/time specifically in EST timezone to write to a user business class/field.
I'm developing a IPA in Cloudsuite and at this time we are unable to have the Default Coroporate or System time zone changed to EST.
I've already looked at a few other ways of doing this, specifically:
intlDateObj = new Intl.DateTimeFormat('en-US', { timeZone: "America/New_York" }); usaTime = intlDateObj.format(date);
And...
usaTime = date.toLocaleString("en-US", {timeZone: "America/New_York"});
But none of these are working in IPA. I could probably force the EST time by subtracting 6 hours from UTC but I want to avoid doing that.
Thanks in advance...