Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js get time in timezone

// Javascript timestamps are specified in milliseconds
let ts = 1581338765000;

let nz_date_string = new Date(ts).toLocaleString("en-US", { timeZone: "Pacific/Chatham" });

// rest of the code
 
PREVIOUS NEXT
Tagged: #node #js #time #timezone
ADD COMMENT
Topic
Name
6+4 =