moment add time code example
Example 1: moment js add day
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Example 2: moment hour minute
moment().format('HH:mm:ss')
Example 3: moment add seconds
var travelTime = moment().add(642, 'seconds').format('hh:mm A');
var travelTime = moment().add(11, 'minutes').format('hh:mm A');
var travelTime = moment().add(2, 'hours').format('hh:mm A');
Example 4: moment set time
const date = "2017-03-13";
const time = "18:00";
const timeAndDate = moment(date + ' ' + time);
console.log(timeAndDate);