Answers for "momentsjs add year"

6

moment js add day

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

moment js year only

moment().year(Number);
moment().year(); // Number
moment().years(Number);
moment().years(); // Number
Posted by: Guest on February-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language