Is there a way to calculate the difference between the start time and end time using the date pipe in Angular?
this.startTime=this.datePipe.transform(new Date(), 'hh:mm');
this.endTime=this.datePipe.transform(new Date(), 'hh:mm');
The output looks like this:
Start time - 01:14
End time - 01:15
I need to find the time difference between the start and end time. In this case, it should return 1.
If you have any solutions or suggestions, thank you in advance!