I utilized the Datediff function to calculate the time difference in minutes.
The challenge I am facing is not being able to format the result in the hh:mm format.
Currently, it appears as 0:3, where the value obtained is 3 minutes, but I aim for 00:03.
SOLUTION
var sec_num = self.Minutes //self minutes = 3 minutes;
var hours = Math.floor(sec_num / 60);
var minutes = Math.floor(sec_num - hours * 60);
self.display = hours + ":" + minutes ;
return self.display;
IMPLEMENTATION
<span>{{display}}</span>