I have two different date format I need to get time difference of. I tried;
clDateTimestamp: Date; //has timestamp in such format; 2020-20-22T16:15:43.110+000
clDate = new Date(clDateTimestamp); // returns Invalid Date;
currentDate = new Date(Date.now()); // returns date in such format; Sat Apr 25 2020 17:32:53 GMT-500
dateDiference = currentDate.getTime() - clDate.getTime(); //returns NaN
Any ideas on how return the time difference even in milliseconds?