how to get current date in iSO format by sending date string in moment code example
Example: how to get iso date with moment
moment().toISOString(); // or format() - see below
moment().toISOString(); // or format() - see below