moment js get date from date jquery code example Example: moment js print date moment(testDate).format('MM/DD/YYYY');