I am using dateTimepicker plugin for datepicker widget jquery ui.
Now I want to add jalali Calendar support to it.
Of course an alternate and customized version of datepicker jquery ui is written that you can see at (jalali date picker)[http://hasheminezhad.com/datepicker].
that works very well but when I use datetimepicker and jalali date picker ,a problem occurs.
If you know, in jalali calendar and gregorian calendar are some differences on day month length . for Example February month(2nd month in year) in Gregorian have 28 days while Ordibehesh (2nd month in jalali) have 31 days.
When attach both jalali datepicker and datetimepicker to page and call datetimepicker provided by dateTimepicker plugin, days shown are correct But when click(select) a date from (2nd month of jalali), for example Thirtieth day , 2nd day of third jalali month(named khordad) is returned, why ? because February has 28 month.
I am using dateTimepicker plugin for datepicker widget jquery ui.
Now I want to add jalali Calendar support to it.
Of course an alternate and customized version of datepicker jquery ui is written that you can see at (jalali date picker)[http://hasheminezhad.com/datepicker].
that works very well but when I use datetimepicker and jalali date picker ,a problem occurs.
If you know, in jalali calendar and gregorian calendar are some differences on day month length . for Example February month(2nd month in year) in Gregorian have 28 days while Ordibehesh (2nd month in jalali) have 31 days.
When attach both jalali datepicker and datetimepicker to page and call datetimepicker provided by dateTimepicker plugin, days shown are correct But when click(select) a date from (2nd month of jalali), for example Thirtieth day , 2nd day of third jalali month(named khordad) is returned, why ? because February has 28 month.
it is a jsfiddle Of that I described : https://jsfiddle.net/ahmadbadpey/zfdzdkkv/