how to convert Date to datetime using moment code example
Example 1: convert moment date to utc format moment
moment(timestamp).toISOString(true)
Example 2: moment to date
moment().toDate();
moment(timestamp).toISOString(true)
moment().toDate();