Top "Nsdateformatter" questions

Class that creates string representations of NSDate (and NSCalendarDate) objects, and convert textual representations of dates and times into NSDate objects.

NSDateFormatter return wrong date + Swift

Code : let dateString = "2016-04-02" var formatter: NSDateFormatter = NSDateFormatter() formatter.timeZone = NSTimeZone(abbreviation: "GMT +3:00") formatter.dateFormat = "yyyy-MM-dd" println("dateString: \(dateString)") …

swift nsdate nsdateformatter string-to-datetime
Convert UTC to local time with NSDateFormatter

I am getting the following string from a server in my iOS app: 20140621-061250 How can I convert it to …

cocoa cocoa-touch time nsdateformatter date-parsing
Unable to format UTC date with NSDateFormatter

I have the following date: 2011-10-20T01:10:50Z I would like it to be formatted to "M/d/yy …

iphone objective-c cocoa-touch nsdate nsdateformatter
Nil NSDate when trying to get date from UTC string in zulu time

Writing an iPhone app in Objective-C, I have a date in string form (in UTC format, with a Z on …

iphone objective-c nsdate utc nsdateformatter
What's wrong with how I'm using NSDateFormatter?

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; dateFormatter.locale = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]; [dateFormatter setDateFormat:@"EEE, d MMM yyyy HH:…

iphone objective-c nsdateformatter ios
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
What kind of sarcastic error is this iOS?

I have some code I use to sort calendar dates that looks like this: #if !(TARGET_IPHONE_SIMULATOR) NSString *formatString = […

ios objective-c debugging nsdateformatter
Convert String to NSDate with Swift 2

I'm trying to convert a string to NSDate here is my code let strDate = "2015-11-01T00:00:00Z" // "2015-10-06…

ios swift2 nsdateformatter
how can I add one minutes in current NSDate of iphone and save in NSDate?

I can get current date of iphone via this code as NSDate *currentDate = [NSDate date]; NSDateFormatter *dateFormatter1 = [[NSDateFormatter alloc] init]; […

nsdate nsdateformatter