Answers for "momen js get time zone code from location name"

0

momen js get time zone code from location name

var zone_name =  moment.tz.guess();
var timezone = moment.tz(zone_name).zoneAbbr() 
console.log(timezone);
Posted by: Guest on May-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language