I used the Datediff function to get the difference between dates in minutes.
My problem is that I cannot display the result in the following hh: mm format.
Right now it's like 0: 3, the value I get is 3 minutes, I intend to 00:03.
COMPONENT
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;
HTML
<span>{{display}}</span>