#4533 closed feature (duplicate)
Add support for custom calendars
Reported by: | mahdi | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.7.2 |
Component: | ui.datepicker | Version: | 1.7.1 |
Keywords: | cusom calendar | Cc: | |
Blocked by: | Blocking: |
Description
This datepicker has good support for localization, but for some, this ain't enough. I need the support for custom calendar too. I need to use this datepicker with Jalali Canlendar (instead of the default Georgian Calendar).
In my own case, I built a new class called JalaliDate with the same methods as Date class (the default javascript Date class) such as setDate, setFullYear, getDate, getMonth, etc. then in the code, I replaced all "Date()" references with "JalaliDate()" and it worked just perfect in my case.
I think it's a good idea to add the support for this type of custom Date classes. so that when localizing the calendar, one would be able to set the "Date" inteface too.
PS: if you think it's needed, I can provide you with my JalaliDate class which I talked about.
Change History (6)
comment:1 Changed 14 years ago by
Milestone: | TBD → 1.next |
---|
comment:2 Changed 14 years ago by
unfortunately I'm not familiar with this "Marc's calendar engine" and I couldn't find anything about it either. could you please tell me more?
comment:3 Changed 13 years ago by
Also see http://keith-wood.name/calendars.html for an implementation of several of the world's calendars.
comment:4 Changed 13 years ago by
Actually I've implemented what I needed! Here's the Jalali and Islamic(Hijri) DatePicker: http://hasheminezhad.com/sites/default/files/hasheminezhad.com/datepicker-cc7.zip
comment:6 Changed 10 years ago by
Milestone: | 1.next → 1.7.2 |
---|
Will be possible with Marc's calendar engine.