moment js format iso date code example
Example 1: how to get iso date with moment
moment().toISOString(); // or format() - see below
Example 2: format a date moment
moment(testDate).format('MM/DD/YYYY');
moment().toISOString(); // or format() - see below
moment(testDate).format('MM/DD/YYYY');