add time to moment date code example
Example 1: moment js add day
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Example 2: moment set time
const date = "2017-03-13";
const time = "18:00";
const timeAndDate = moment(date + ' ' + time);
console.log(timeAndDate);
Example 3: momentjs date and time string add minutes
moment(date, "DD-MM-YYYY hh:mm:ss")
.add(10, 'minutes')
.format('DD/MM/YYYY hh:mm:ss');