Re: date parsing
Re: date parsing
- Subject: Re: date parsing
- From: Prachi Gauriar <email@hidden>
- Date: Mon, 02 Jun 2003 00:47:53 -0500
On Monday, June 2, 2003, at 12:11 AM, Lloyd Dupont wrote:
[NSCalendarDate dateWithString: @"20030602T04:21:10" calendarFormat:
@"%y%m%dT%H:%M:%S" locale:nil]
or
[NSCalendarDate dateWithString: @"20030602T04:21:10" calendarFormat:
@"%y%m%dT%H:%M:%S"]
According to the docs
<
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/
ProgrammingTopics/DataFormatting/Tasks/SettingFormatForDates.html>:
%y year without century (00-99)
%Y year with century (such as 1990)
So, I believe the format string should be @"%Y%m%dT%H:%M:%S", i.e. use
a 'Y', not a 'y'.
-Prachi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.