I have two date time string.
var currentTime = '2/2/2018, 11:34:53 AM';
var loggedTime = '2/2/2018, 11:14:46 AM';
Can someone suggest how to get the time difference between two date times ? If time difference is hour, days, months, the time difference should come as the same.