- Use
NSDateFormatter to convert the date strings into NSDate objects.
- Call
-[NSDate timeIntervalSinceDate:] to get the difference between the two dates in seconds.
- Divide by 60 to get the difference in minutes.
Alternatively, you can use NSCalendar and NSDateComponents to calculate the difference in minutes for different calendars by using the components:fromDate:toDate:options: method.