Answers for "get utc current time javascript moment"

0

convert utc time to local time moment

const date = moment.utc().format();
console.log(date, "- now in UTC");
const local = moment.utc(date).local().format();
console.log(local, "- UTC now to local");
Posted by: Guest on December-23-2020
1

momentjs utcoffset

moment().utcOffset()    // will output 60 (for example)
Posted by: Guest on September-16-2020

Code answers related to "get utc current time javascript moment"

Code answers related to "Javascript"

Browse Popular Code Answers by Language