Answers for "how to use a fixed time zone in nodejs"

0

how to use a fixed time zone in nodejs

const nDate = new Date().toLocaleString('en-US', {
  timeZone: 'Asia/Calcutta'
});

console.log(nDate);
Posted by: Guest on May-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language