Zebra_Datepicker icon indicating copy to clipboard operation
Zebra_Datepicker copied to clipboard

Idea: Adding Support for Multi-Regional Calendar

Open mahdiit opened this issue 7 years ago • 5 comments

Hey i am working with this calendar many years, nice and super fast, it is simple but perfect design but we have a programs that need to support other country calendar, like Persian (also called the Solar Hejri calendar or Shamsi Hijri calendar,) that will use in some asian countries like Afghanistan, Iran and so on.

so i decide add some code to base calendar js and share it with people around the world with different culture to use it.

Steps you need is:

var datepicker_fa_IR = {
    calendar: JalaliDate,
    months: ['فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
    days: ['یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
    months_abbr: ['فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
    days_abbr: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
    first_day_of_week: 6,
    weekend_days: [5],
    format: 'Y/m/d',
    lang_clear_date: 'پاک کردن',
    readonly_element: false,
    show_select_today: 'امروز',
    //offset: [2, 230],
    open_icon_only: true
};

Final result: preview

mahdiit avatar Jul 01 '18 05:07 mahdiit

Hello @mahdiit i would be really thankful if you guide me to implement the islamic hijri calendar from the files you provided

tareksherif23 avatar Jan 06 '20 16:01 tareksherif23

hi i found another multi culture time and date if you use it in your project i think , it can be more globalized , and can use in any supported cultures or languages

see this project at https://momentjs.com

On Mon, Jan 6, 2020, 20:05 tareksherif23 [email protected] wrote:

Hello @mahdiit https://github.com/mahdiit i would be really thankful if you guide me to implement the islamic hijri calendar from the files you provided

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stefangabos/Zebra_Datepicker/issues/121?email_source=notifications&email_token=AAAQSCCOJ2MU5CJCEEEKU6TQ4NMU3A5CNFSM4FHY2Z32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIF7QNY#issuecomment-571209783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQSCCPKA3BA2VXFUFCYHDQ4NMU3ANCNFSM4FHY2Z3Q .

mahdiit avatar Jan 06 '20 17:01 mahdiit

there is such implementation in the plugin section:

Solar Based Calendar: https://momentjs.com/docs/#/plugins/hijri/

Moon Based Calendar: https://momentjs.com/docs/#/plugins/islamic-civil/

On Tue, Jan 7, 2020 at 11:52 AM tareksherif23 [email protected] wrote:

thank you for sharing it @mahdiit https://github.com/mahdiit but i need to implement the hijri calendar not gregorian

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stefangabos/Zebra_Datepicker/issues/121?email_source=notifications&email_token=AAAQSCFSFDXHX2F7RLCCB2DQ4Q3URA5CNFSM4FHY2Z32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIICUIA#issuecomment-571484704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQSCBFYENREF243TYDSODQ4Q3URANCNFSM4FHY2Z3Q .

mahdiit avatar Jan 07 '20 09:01 mahdiit

is there a way to get back time with jalali date it returns year/month/day only

tareksherif23 avatar Jan 27 '20 15:01 tareksherif23

Could you please fork and make a new persian zebra datepicker ? thanks

AliMahmodi avatar Nov 14 '20 16:11 AliMahmodi