Skip navigation.
 
mlRe: RFC822 date-string to NSDate
FROM : Steve Byan
DATE : Mon Jun 30 21:14:32 2008

On Jun 30, 2008, at 2:50 PM, Andy Lee wrote:

> I'm not too familiar with NSDateFormatter.  Do you need to call -
> setDateFormat:?


Ah, thanks, I missed the statement hidden on page 23 of "Data 
Formatting Programming Guide for Cocoa", which says:

"You use the format string is used to specify both the input to and 
the output from date formatter objects."

That's a bummer, because RFC822 dates have some optional elements and 
so don't conform to a fixed format. I hoped that the default parsing 
was smart.

Anyone have any pointers to some Objective-C RFC822-date-time parsing 
code? An NSDateFormatter category containing 
dateFromRFC822DateTimeString: would be great :-)

Best regards,
-Steve

--
Steve Byan <<email_removed>>
Littleton, MA 01460

Related mailsAuthorDate
mlRFC822 date-string to NSDate Steve Byan Jun 30, 20:35
mlRe: RFC822 date-string to NSDate Andy Lee Jun 30, 20:50
mlRe: RFC822 date-string to NSDate Nick Zitzmann Jun 30, 20:54
mlRe: RFC822 date-string to NSDate Steve Byan Jun 30, 21:14
mlRe: RFC822 date-string to NSDate Kyle Sluder Jun 30, 21:55