Top "Nsdate" questions

NSDate objects represent a single point in time.

iOS: Compare two dates

I have a NSDate that I must compare with other two NSDate and I try with NSOrderAscending and NSOrderDescending but …

objective-c ios nsdate
Getting the difference between two Dates (months/days/hours/minutes/seconds) in Swift

I am trying to get the difference between the current date as NSDate() and a date from a PHP time(); …

ios swift macos date nsdate
How can I calculate the difference between two dates?

How can I calculate the days between 1 Jan 2010 and (for example) 3 Feb 2010?

objective-c swift date nsdate
get current date from [NSDate date] but set the time to 10:00 am

How can I reset the current date retrieved from [NSDate date] but then change the time to 10:00 in the morning.

iphone ipad nsdate
Get Current date & time with [NSDate date]

My system's date time is 26 May 22:55 but when i get date with [NSDate date] date time is 27 May 02:35 is it …

objective-c cocoa nsdate
Number of days between two NSDates

How could I determine the number of days between two NSDate values (taking into consideration time as well)? The NSDate …

ios objective-c cocoa-touch nsdate
get NSDate today, yesterday, this Week, last Week, this Month, last Month... variables

I am trying to do is to get NSDate today, yesterday, this Week, last Week, this Month, last Month variables …

iphone time comparison nsdate
Measure elapsed time in Swift

How can we measure the time elapsed for running a function in Swift? I am trying to display the elapsed …

swift time nsdate elapsedtime
NSDate Comparison using Swift

I am working on an app the requires checking the due date for homework. I want to know if a …

swift nsdate xcode6
Objective-C, How can I get the current date in UTC timezone?

I am trying: NSDate *currentDateInLocal = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:SS.SSS'Z'"]; NSString *currentLocalDateAsStr = […

ios objective-c nsdate nsdateformatter