using moment convert date format code example
Example 1: convert moment date to utc format moment
moment(timestamp).toISOString(true)
Example 2: format a date moment
moment(testDate).format('MM/DD/YYYY');
moment(timestamp).toISOString(true)
moment(testDate).format('MM/DD/YYYY');