---
title: "Discussion on \"Get the current/user time zone without any libraries\" | Hashnode"
description: "Discussion on \"Get the current/user time zone without any libraries\". const timezone = Intl\n                .DateTimeFormat()\n                .resolvedOptions()\n                .timeZone;\nconsole.log('timezone:', timezone);\noutput:\ntimezone: Asia/Calcutta"
url: "https://hashnode.com/posts/get-the-currentuser-time-zone-without-any-libraries/6373191dfa286fc922cab1dc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Get the current/user time zone without any libraries](https://harikrishna.hashnode.dev/get-the-currentuser-time-zone-without-any-libraries?utm_source=hashnode&utm_medium=feed)

const timezone = Intl .DateTimeFormat() .resolvedOptions() .timeZone; console.log('timezone:', timezone); output: timezone: Asia/Calcutta

Jan 22, 2022 · 1 min read · harikrishna.hashnode.dev  
Read the article

-   [#current-timezone](https://hashnode.com/tag/current-timezone)
-   [#user-timezone](https://hashnode.com/tag/user-timezone)

## Written by

[Hari Krishna Anem](https://hashnode.com/@hkrishna)

@hkrishna · Hyderabad, India

  
[View profile](https://hashnode.com/@hkrishna)

Full stack developer

Full stack developer (ReactJS, NodeJS, JavaScript, PHP, SQL)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
