I have two times :
10:23:51
10:31:54
Both values are stored as strings in a SQLite database.
I want to find the difference between these two times in hh:mm format.
How can I do this?
I have searched a lot. But can't find a proper solution. Help me out. Thanks.
Edit :
See basically I am having two arrays:
InTimeArray
and OuttimeArray
.
Now in the viewDidload
method , I am fetching all the intime
entries in the IntimeArray
and Outtime
entries in the outtime
Arrays.
Now I am passing one by one values in tableview like in 1st row
IntimeArray[0]
OuyTimeArray[0]
second row:
IntimeArray[1]
OuyTimeArray[1]
Now I want to count the differences between 1st row's intime
and outtime
in HH:MM format.
I am really confused.