air-datepicker icon indicating copy to clipboard operation
air-datepicker copied to clipboard

Support Jalali Calendar

Open bshafiei-ir opened this issue 7 years ago • 8 comments

Hello is any way to your datepicker support jalali calendar (Persian Calendar)? thanks

bshafiei-ir avatar May 09 '17 05:05 bshafiei-ir

Hi! I'm sorry but there is no way to do that, because, as I understand, there is a lot of differences with Gregorian chronology.

t1m0n avatar May 09 '17 10:05 t1m0n

Hello is any way to your datepicker support jalali calendar (Persian Calendar)? thanks

👍

MR-Mostafa avatar Jan 19 '21 14:01 MR-Mostafa

Hi! I'm sorry but there is no way to do that, because, as I understand, there is a lot of differences with Gregorian chronology.

Hi, For logic difference between these dates (jalali & gregorian) you can use: Persian Date

MR-Mostafa avatar Jan 19 '21 14:01 MR-Mostafa

Hello, Can somebody mention what are the complications of such change in a concise way? I want to see if I can help but haven't read the source code yet.

SudoNova avatar Oct 07 '21 10:10 SudoNova

Hello, Can somebody mention what are the complications of such change in a concise way? I want to see if I can help but haven't read the source code yet.

This project is very complete, but it's a pity that it doesn't support the Jalali calendar! I will write a jalali DatePicker soon, but I need financial help

wpV2rayNG avatar Nov 15 '22 21:11 wpV2rayNG

Hi, I implemented this feature (support multi calendar including Jalali/Persian calendar) https://github.com/afz/air-datepicker

afz avatar Sep 24 '23 05:09 afz

Hi, I implemented this feature (support multi calendar including Jalali/Persian calendar) https://github.com/afz/air-datepicker

Hello, I used the package that you changed, but it is still dated

mrwcom avatar Oct 09 '23 14:10 mrwcom

Hi, I implemented this feature (support multi calendar including Jalali/Persian calendar) https://github.com/afz/air-datepicker

Hello, I used the package that you changed, but it is still dated

Hi, Try this configuration:


new AirDatepicker('#input1', {
    calendar: 'jalali',
    direction: 'rtl',
    position: 'bottom right',
    locale: {
        days: ["یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنج‌شنبه", "آدینه", "شنبه"],
        daysShort: ["ی", "د", "س", "چ", "پ", "آ", "ش"],
        daysMin: ["ی", "د", "س", "چ", "پ", "آ", "ش"],
        months: ["فروردین", "اردیبهشت", "خرداد", "تیر", "مرداد", "شهریور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"],
        monthsShort: ["فروردین", "اردیبهشت", "خرداد", "تیر", "مرداد", "شهریور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"],
        dateFormat: 'yyyy/MM/dd',
        timeFormat: 'HH:mm',
        firstDay: 6
    }
});

afz avatar Oct 10 '23 04:10 afz