I need to send a Date to my backend in the following format:
2019-04-24T04:27:14.867Z
I tried doing these:
var d = new Date();
console.log(d);
var utcDate1 = new Date(Date.UTC(96, 1, 2, 3, 4, 5));
console.log(utcDate1);
var newFormat = new Date('04/21/19');
console.log(newFormat);
Nothing works. what is the correct approach to get the value as like I requried.