how to convert date in any format by using moment code example
Example 1: moment to date
moment().toDate();
Example 2: format a date moment
moment(testDate).format('MM/DD/YYYY');
moment().toDate();
moment(testDate).format('MM/DD/YYYY');