moment js add 1 sec code example Example: moment js print date moment(testDate).format('MM/DD/YYYY');