Re: NSDate from xsd:dateTime / ISO 8601

2008-03-17 Thread Jens Alfke
On 17 Mar '08, at 4:30 PM, Nathan Vander Wilt wrote: This works, BUT...I had to edit the format a bit because my time strings (in this sample!) did not have the decimal seconds. However, I wouldn't be surprised to see input with sub-second precision. How can I specify optional format parts

Re: NSDate from xsd:dateTime / ISO 8601

2008-03-17 Thread Nathan Vander Wilt
Does -dateWithString: really not support the "international [standard!] string representation" of ISO 8601?? What's the right way to convert such an xsd:dateTime to an NSDate? +[NSDate dateWithString:] is, I think, configured to recognize one particular date format, which depends on your syste

Re: NSDate from xsd:dateTime / ISO 8601

2008-03-17 Thread Nathan Vander Wilt
Does -dateWithString: really not support the "international [standard!] string representation" of ISO 8601?? What's the right way to convert such an xsd:dateTime to an NSDate? +[NSDate dateWithString:] is, I think, configured to recognize one particular date format, which depends on your syste

Re: NSDate from xsd:dateTime / ISO 8601

2008-03-17 Thread Jens Alfke
On 17 Mar '08, at 3:20 PM, Nathan Vander Wilt wrote: Does -dateWithString: really not support the "international [standard!] string representation" of ISO 8601?? What's the right way to convert such an xsd:dateTime to an NSDate? +[NSDate dateWithString:] is, I think, configured to recognize o

NSDate from xsd:dateTime / ISO 8601

2008-03-17 Thread Nathan Vander Wilt
I'm trying to convert a date formatted as a valid xsd:dateTime format, which is a subset of ISO 8601. I though I had it when I saw that that -[NSDate dateWithString:] takes an "international string representation format". But when I feed it a string like @"2007-07-01T01:33:01Z", I get back nil. Do