Answers for "javascript convert timezone name to abbreviation"

0

javascript convert timezone name to abbreviation

// Doing this:

<script src="moment.js"></script>
<script src="moment-timezone.js"></script>
<script src="moment-timezone-data.js"></script>
<script>
    moment().tz("America/Los_Angeles").zoneAbbr();
</script>

// Returns:

'PDT' // Timezone's abbreviation
Posted by: Guest on June-16-2020

Code answers related to "javascript convert timezone name to abbreviation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language