Answers for "moment format a date reduces a day"

10

moment js add day

var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Posted by: Guest on May-15-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 "moment format a date reduces a day"

Code answers related to "Javascript"

Browse Popular Code Answers by Language