Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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");
 
PREVIOUS NEXT
Tagged: #convert #utc #time #local #time #moment
ADD COMMENT
Topic
Name
4+2 =