Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong gregorian date returned when hijri : true #18

Open
abdumostafa opened this issue Mar 3, 2020 · 1 comment
Open

Wrong gregorian date returned when hijri : true #18

abdumostafa opened this issue Mar 3, 2020 · 1 comment

Comments

@abdumostafa
Copy link

I've made a hijri date picker like this:

$("#dateOfBirth").hijriDatePicker({
            hijri: true,
            showSwitcher: false
        });

When I try to get the Gregorian date to send it to my API, it returned the date - 1 day:
$("#dateOfBirth").data().HijriDatePicker.date()

@balbarak
Copy link
Owner

balbarak commented Mar 3, 2020

Hello,
make sure you upgrade to the latest version

and it should return null if there is no selected date.

Also, please note that the min support date for Hijri is 1369-03-12 and Max supported date is 1492-11-18

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants