Answers for "moment set a certain date"

6

moment date add

var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Posted by: Guest on May-15-2020
0

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