Answers for "node js get time in timezone"

1

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
Posted by: Guest on May-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language