Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get current time zone in javascript

// how to get current time zone in javascript
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
console.log(timezone); // Asia/Calcutta
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #time #zone #javascript
ADD COMMENT
Topic
Name
2+5 =