Refferred Date difference in hours - Angular 2, which was not returns
let creationDate =params.data.createdTime;
let incidentDate= params.data.incidentTime;
let diffInMs = Date.parse(creationDate) - Date.parse(incidentDate);
let diffInHours = diffInMs / 1000 / 60 / 60;
Which return wrong anwers or in most case NaN,
Date is in this format - `08/03/2017 10:52:58 AM - 06/03/2017 10:48:15 PM`
DATEFORMAT : dd/MM/yyyy hh:mm:ss a