If you have a moment object you can use add
and substract
to manipulate it or set any property of the time directly
moment("2016-01-01").add(1, 'year').format('YYYY-MM-DD')
// -> "2017-01-01"
Or use .day()
, .month()
, .year()
, .seconds()
, .milliseconds()
to set those values directly. Note that the arguments passed are 0-indexed.
moment("2016-01-01").month(4).day(5).format('YYYY-MM-DD')
// -> "2016-05-06"