moment create date from 2020-06-06 code example Example: moment js print date moment(testDate).format('MM/DD/YYYY');