saeidrnb / Persian-DateRangePicker

jalali date range picker
31 stars 8 forks source link

Jalali Month Error #1

Open maherAshori opened 6 years ago

maherAshori commented 6 years ago

When user pick [farvardin] [فررودین] month the moment jalali return error which is invalid-date, and then datepicker stop working until user change the month.

please help

maherAshori commented 6 years ago

For Making fast solution actually i add flowing codes to daterangepicker-fa-ex.js find monthOrYearChanged function and then add this codes: var month = parseInt(cal.find('.monthselect').val(), 10); var year = parseInt(cal.find('.yearselect').val()); if(month === 0){ month = 12; year = parseInt(cal.find('.yearselect').val()) - 1; }

This code can skip that error and return true value in both languages [en] & [fa]

mkazemiraz commented 6 years ago

this is a good plugin but no community is awful.

mkazemiraz commented 6 years ago

can change only end date in range datepicker ? in normal case, people must selet startdate first and change end date.

saeidrnb commented 6 years ago

Yes you can do it. try please

mkazemiraz commented 6 years ago

can you please put a sample of this? i read daterangepicker-fa-ex.js and cant understand how.

please help

mkazemiraz commented 6 years ago

Can you please explain how i can do this? i cant see any thing in daterangepicker-fa-ex.js.

سلام ، میشه لطفا یه توضیحی در مورد این سوال بهم بدید ؟

maherAshori commented 6 years ago

admin of this page not answer at all, however what's your problem exactly? maybe i can help you

saeidrnb commented 6 years ago

This plugin not supported your request. please use another.

mkazemiraz commented 6 years ago

can change only end date in range datepicker ? in normal case, people must selet startdate first and change end date.

من میخوام کاربر بتونه فقط یک تاریخ رو توی range عوض کنه .

در حالت عادی کاربر باید هر دو تاریخ رو انتخاب کنه تا آپدیت بشه و تغییر بشه

aliwesome commented 5 years ago

@maherAshori could you solve this issue?