Is Zone Abbreviation Using Moment-zone Library A Dynamic
I am using moment timezone library to show the zone abbreviation after the timestamp. I am using the following snippet to show the zone abbreviation of New York, USA var timeZone
Solution 1:
Yes, it will.
var jun = moment("2014-06-01T12:00:00Z");
var dec = moment("2014-12-01T12:00:00Z");
jun.tz('America/New_York').format('ha z'); // 8am EDT
dec.tz('America/New_York').format('ha z'); // 7am EST
Post a Comment for "Is Zone Abbreviation Using Moment-zone Library A Dynamic"