Top "Nsdateformatter" questions

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

Why isn't my time zone being saved into my NSDate?

I must initialize an NSDate object from NSString in objective-c. I do it like this: NSString *dateString = [[webSentence child:@"DateTime"].…

objective-c timezone nsdate nsdateformatter
iPhone NSDateFormatter Timezone Conversion

I am trying to create a formatter that will convert the date format shown to an NSDate object: NSString *dateStr = @"2010…

iphone nsdateformatter
NSDateFormatter with 24 hour times

I have a countdown timer which countsdown from the current date/time to a specific future date/time. It is …

objective-c iphone nsdateformatter
NSDateFormatter and Time Zone issue?

I have a string with time in GMT and i want to make it according to the system time zone …

iphone objective-c timezone nsdate nsdateformatter
Date/Time parsing in iOS: how to deal (or not deal) with timezones?

I have an ASP.NET MVC 3 website that communicates with my iOS app via JSON. As part of the objects …

objective-c ios nsdate nsdateformatter
How to handle different date time formats using NSDateFormatter

I have a String with a datetime format: "YYYY-MM-DD HH:MM:SS". I use this in my source code: NSDateFormatter *…

iphone nsdateformatter
How to convert NSDate in to relative format as "Today","Yesterday","a week ago","a month ago","a year ago"?

I want to convert nsdate in to relative format like "Today","Yesterday","a week ago","a month ago","a year …

ios objective-c nsdate nsdateformatter relative-date
Is there a simple way of converting an ISO8601 timestamp to a formatted NSDate?

If I use the following code: NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm"]; NSDate *myDate = [dateFormatter dateFromString:@"2010-01…

objective-c nsdate nsdateformatter iso8601
NSDateFormatter dateFromString and iPhone in 24 Hour Format Confusion

I'm having a problem. I get incoming time strings in 12-hour format, and I'm turning them into NSDate objects. When …

iphone cocoa-touch time nsdateformatter
How can I convert including timezone date in swift?

I want to convert 2015-08-14T20:02:25-04:00 to 2015-08-14 16:02 I tried below, but it could't execute well(returned …

ios swift nsdateformatter