moment get date format like yyyy-mm-dd code example
Example 1: moment format date dd/mm/yyyy
moment(new Date()).format("DD/MM/YYYY")
Example 2: format a date moment
moment(testDate).format('MM/DD/YYYY');
moment(new Date()).format("DD/MM/YYYY")
moment(testDate).format('MM/DD/YYYY');