Skip to main content

Search and Top Navigation

#4533 closed feature (duplicate)

Opened May 14, 2009 06:17PM UTC

Closed October 26, 2010 02:02PM UTC

Last modified October 03, 2012 03:42PM UTC

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:

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.

Attachments (0)
Change History (6)

Changed May 17, 2009 01:21PM UTC by jzaefferer comment:1


Will be possible with Marc's calendar engine.

Changed May 19, 2009 05:51PM UTC by mahdi comment:2

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?

Changed December 01, 2009 01:35AM UTC by kbwood comment:3

Also see for an implementation of several of the world's calendars.

Changed December 08, 2009 05:11PM UTC by mahdi comment:4

Actually I've implemented what I needed! Here's the Jalali and Islamic(Hijri) DatePicker:

Changed October 26, 2010 02:02PM UTC by scottgonzalez comment:5

resolution: → duplicate
status: newclosed

Duplicate of #5789.

Changed October 03, 2012 03:42PM UTC by scottgonzalez comment:6

milestone: 1.next1.7.2