Answers for "moment add time without utc"

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

get moment date without time

console.log( moment().format('YYYY-MM-DD HH:mm:ss') )

console.log( moment({h:0, m:0, s:0, ms:0}).format('YYYY-MM-DD HH:mm:ss') )
Posted by: Guest on September-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language