Answers for "howto turn an already formatted date into a new date momment js"

6

moment js add day

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

moment check valid date

var date = moment("2016-10-19");
var check = date.isValid();
console.log(check);
Posted by: Guest on March-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language