KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How could I determine the number of days between two NSDate values (taking into consideration time as well)? The NSDate values are in whatever form [NSDate date] takes. Specifically, when a user enters the inactive state in my iPhone app, I store the following value: exitDate = [NSDate date]; And when they open the app back up, I get the current time: NSDate *now = [NSDate date]; Now I'd like to implement the following: -(int)numberOfDaysBetweenStartDate:exitDate andEndDate:now
Tags (comma-separated)
Save Edits
Cancel