Top "Nsdate" questions

NSDate objects represent a single point in time.

Converting UTC date format to local nsdate

I am getting from my server a string date in UTC time zone and I need to convert it to …

ios swift date timezone nsdate
Minimum and maximum date in UIDatePicker

I want to get the minimum and maximum date from a date picker, but minimum date should be "- 18" of …

ios objective-c nsdate nsdatepicker
Sort NSArray of date strings or objects

I have an NSArray that contains date strings (i.e. NSString) like this: "Thu, 21 May 09 19:10:09 -0700" I need to sort …

objective-c cocoa sorting nsarray nsdate
NSPredicate: filtering objects by day of NSDate property

I have a Core Data model with an NSDate property. I want to filter the database by day. I assume …

objective-c core-data nsdate nspredicate nsfetchedresultscontroller
Find difference in seconds between NSDates as integer using Swift

I'm writing a piece of code where I want to time how long a button was held down. To do …

swift nsdate nstimeinterval
Converting a string to an NSDate

How is it possible to convert a string to an NSDate on iOS?

objective-c cocoa-touch nsstring formatting nsdate
Swift 3.0 : Convert server UTC time to local time and vice-versa

I want to convert server UTC time to local time and vice-versa. Here is my code.. var isTimeFromServer = true var …

swift nsdate nsdateformatter nsdatecomponents
How to determine if an NSDate is today?

How to check if an NSDate belongs to today? I used to check it using first 10 characters from [aDate description]. [[…

ios objective-c cocoa-touch nsdate nscalendar
Subtract 7 days from current date

It seems that I can't subtract 7 days from the current date. This is how i am doing it: NSCalendar *gregorian = [[…

objective-c ios nsdate