Tag Archives: NSDate

NSDateFormatter & Http Header

Ever tried to get e.g. the “Last-Modified” HTTP response header field into a NSDate object? That’s no real fun, because

this standard formatting isn’t digested by default,
the required format string doesn’t quite work as documented.

Let’s concentrate on “Full Date” according to RFC 1123:
NSString *src = @”Fri, 14 Aug 2009 14:45:31 GMT”;
The NSDateFormatter switched to Unicode …