I have two NSDates formatted as “h:mm a” as time, (i.e. 6:00 AM and 8:00 PM).
I am trying to find out what time is the midpoint between those two times.
For the example above, the midpoint between 6:00 AM and 8:00 PM would be 1:00 PM.
But I do not know how to do this in objective-C for the iPhone sdk.
Any help or suggestions or code would be greatly appreciated.
Perhaps something like the following is what you’re after?
See the NSDate Class Reference for more information.