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 usefulangle.com #
 
PREVIOUS NEXT
Tagged: #current #time #zone #javascript
ADD COMMENT
Topic
Name
8+2 =