views:

66

answers:

2

Hello,

I am using UIDatePicker in my App, which works fine for a Gregorian calendar. But I want to use a Non-Gregorian calendar with the DatePicker, which I didn't succeed to do it! I need it to do some conversion from Non-Gregorian to Gregorian dates, so it must work the same whatever the iPhone 'Locales' are.

Please can you answer this!

Your help is really appreciated,

A: 

Did you try setting the UIDatePicker's calendar property to a non-Gregorian calendar?

Dave DeLong
Thanks Dave.Yes I set the calendar property to a non-Gregorian calendar in viewDidLoad as an example:NSCalendar *myCal = [[NSCalendar alloc] initWithCalendarIdentifier:NSChineseCalendar];pickerView.calendar = myCal;But this keeps the Gregorian calendar, shifted by few weeks (for today it just display the DatePicker with Gregorian date; with August 6, 2010 as default date).
Jason
A: 

Please any help! Does anyone have an idea... I suppose there is a lot of developers that worked on non-gregorian calendars.

Jason