Answers for "moment js end of the day"

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 get end of next moenth

moment('02/28/2018', "MM/DD/YYYY").add(1, 'M').endOf("month")
// 2018-03-31T23:59:59.999Z
Posted by: Guest on April-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language