Skip to main content

Search and Top Navigation

#3629 closed feature (duplicate)

Opened November 27, 2008 05:29AM UTC

Closed July 30, 2014 02:56PM UTC

Supporting of Jalali Calendar (Hijiri Date)

Reported by: jmowla Owned by: kbwood
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.5.2
Keywords: Jalali Hijiri Cc:
Blocked by: Blocking:
Description

It sounds good to support Jalali Calendar by Datepicker.

I just added this feature and tested the code, but don't know how i can package and post that. is it enought too attach scripts?

Attachments (2)
  • datepicker.gif (52.8 KB) - added by jmowla December 14, 2008 07:40AM UTC.

    demonstration of jalali calendar on datepicker component

  • jalaliCalendar.js (6.2 KB) - added by jmowla December 14, 2008 07:39AM UTC.

    source of the jalali-calendar feature

Change History (9)

Changed December 07, 2008 09:43PM UTC by shivisi comment:1

What about the Jewish lunar calendar?

Is there a mechanism planned for supporting alternate calendars?

Changed December 07, 2008 11:08PM UTC by kbwood comment:2

owner: → kbwood
status: newassigned

Yes, please attach the code here and provide an explanation of the differences in your calendars.

Changed December 14, 2008 07:41AM UTC by jmowla comment:3

so sorry for late respond.

using of jalali-calendar feature in datepicker is very simple and i attached a picture about that.

Jalali calendar starts at the first day of Spring (in Gregorian calendar some year in 20th of March and sometimes in 21st of March, because of leap year differences in two calendar).

it has 31 days in months in first 6 months of year (FARVARDIN,ORDIBEHESH,KHORDAD,TIR,MORDAD,SHAHRIVAR)

next 5 months has 30 days in month (MEHR, ABAN, AZAR, DEY, BAHMAN)

the last month of the year contains 29 days in normal year and 30 days in leap (KABISAH) year

the start of the year does not fix on a certain time, the point that the year will change called (TAHVIL-E SAL)

in the current attached .JS file i couldn't document it good :( but in the future i will spend time to document that.

i will be so happy to resolve further bugs that may you occure during usage :">

Changed December 14, 2008 08:36AM UTC by jmowla comment:4

as shivisi told, i think it's a good idea that datepicker have a method like "setCalendar()" and everyone who wants to implements a new calendar, implements an specific interface (object) and register by that method!

Changed January 09, 2009 05:02AM UTC by kbwood comment:5

resolution: → wontfix
status: assignedclosed

This would require a major rewrite of datepicker to separate it from the JavaScript Date class and to pass all dates as arrays of year/month/day.

Changed January 09, 2009 01:58PM UTC by jmowla comment:6

kbwood, any help can i do? or any changes will you plan in datepicker architecture to support alternative calendars?

its a very good datepicker and it will be more powerfull if another calendars can plug into it. we have many calendars in the world :(

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:7

milestone: TBD

Milestone TBD deleted

Changed July 30, 2014 02:55PM UTC by scottgonzalez comment:8

milestone: → none
resolution: wontfix
status: closedreopened

Changed July 30, 2014 02:56PM UTC by scottgonzalez comment:9

resolution: → duplicate
status: reopenedclosed

Duplicate of #5789.