I have two text fields that allow the user to enter a start time and an end time in this format (h: mm). I want it to return the difference in the label. For example, if a user enters 1:35 in the first text field and 3:30 in the second text field and clicks the "Calculate" button, he will return the time 1:55.
Any ideas or resources for this? I just want to calculate the difference in hours and minutes between two text fields. Date and seconds do not matter.
source
share