moment.toDate() Use `yyyy` instead of `YYYY` (in `YYYY-MM-DD`) for formatting years to the input code example Example: moment js print date moment(testDate).format('MM/DD/YYYY');