Issues with the NSFormatter
Issues with the NSFormatter
- Subject: Issues with the NSFormatter
- From: "Nishant Singh" <email@hidden>
- Date: Mon, 5 Jun 2006 13:52:31 +0530
Hi,
We are capturing user entered date in a text-field. The text-field is
attached to a date-formatter.
This works fine for most of the Time Zones and Region formats.
I set my system Region Format to Canada (which has format as DD-MM-YY
for dates) and Timezone to EDT.
The date entered was 11-12-2007 (ie, 11th of December,2007)
However when this date was passed to method dateFromString (and even
getObjectValue:forString:errorDescription) of NSFormatter,
it got converted to 12 of November,2007. Any date entered in the
format DD-MM-YYYY where DD <13 is getting interpreted as MM-DD-YYYY.
If I enter the same date as 11/12/2007 (that is, 11-Dec-2007) then it
works fine.
Is this an issue with the NSFormatter for Canada region?
Pointers are welcome.
regards,
Niz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden