Having trouble adding days to moment js objects:
I'm using this code:
var contractMoment = this.moment(contract,'DD/MM/YYYY')
var start = contractMoment;
var end = contractMoment;
start = contractMoment.add(19, 'days');
end = contractMoment.add(51, 'days');
contractMoment looks like this before I add:
Thu Dec 02 2004 00:00:00 GMT-0600 (Central Standard Time)
and after I do the adding and console log start and end, here is what I'm getting:
Thu Dec 02 2004 00:00:00 GMT-0600 (Central Standard Time)
It returns a moment object for each, what am I missing here? is the added date buried somewhere in the moment object?