how to formatt a date string with momnet code example Example: moment js print date moment(testDate).format('MM/DD/YYYY');