get name timezone of country in javascript code example Example: js get timezone name console.log(Intl.DateTimeFormat().resolvedOptions().timeZone)