Top "Nsdate" questions

NSDate objects represent a single point in time.

How to add a time interval to an NSDate?

I have an NSDate and a duration. I need to get the time after the duration Given: The date is "2010…

objective-c cocoa cocoa-touch nsdate date-arithmetic
Generate NSDate from day, month, and year

I'm trying to generate a NSDate from a month day and year (all in integer format). Right now my attempt …

objective-c ios cocoa-touch cocoa nsdate
Swift convert time to time ago

In Swift5, we have RelativeDateTimeFormatter Prior to Swift5: I'm trying to convert time to time ago, what i wanna do …

swift parse-platform nsdate
change NSDate from one time zone to another

Given a date in NSString like "2012-12-17 04:36:25" (which is GMT) how one can simply change it to other time …

ios objective-c swift nsdate nsdateformatter
Why NSDateFormatter can not parse date from ISO 8601 format

Possible Duplicate: Converting an ISO 8601 timestamp into an NSDate: How does one deal with the UTC time offset? I use …

iphone objective-c ios nsdate nsdateformatter
Core Data Predicate Date Comparison

Im trying to fetch all the objects in an entity matching a user selectedDate (it's an NSDate). The Core Data …

objective-c cocoa nsdate predicate
Converting an ISO 8601 timestamp into an NSDate: How does one deal with the UTC time offset?

I'm having trouble converting an ISO 8601 timestamp into an NSDate. I tried to use NSDateFormatter, but I can't get it …

nsdate utc iso
How to get the date without Time from NSDate?

I want to get the date from NSDate and do not need time. Example: NSDate* today = [NSDate date]; // want to …

objective-c nsdate
NSDate subtract one month

I want two NSInteger year, month to go one month back. e.g. now is 2011-01 how can I get 2010…

iphone objective-c nsdate nsdatecomponents
Setting an NSDate to specific date, time and timezone

I need to set a NSDate to a specific date, time and timezone for an iPhone App. The example code …

iphone xcode nsdate init