I have an app [iphone], that sends to a server some times [using json], so the times look like hh:mm 24 hour format,
the time gets saved in the db as varchar,
I need to calculate the elapsed time = endTime – startTime
but my problem is that I have the time in the db as varchar!, no time stamp,
- so how to calculate the elapsed time, with out changing the varchar type of field in my db?,
can I convert this hh:mm to an int? for the operation?, and then showing it again as a hh:mm, possibly to save in other table?
thanks a lot!
Easy: