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

How to set the date in hijri date picker #12

Open
Nadirdasti opened this issue Jan 25, 2020 · 6 comments
Open

How to set the date in hijri date picker #12

Nadirdasti opened this issue Jan 25, 2020 · 6 comments

Comments

@Nadirdasti
Copy link

how to set the date in hijri date in hijri date picker.

@balbarak
Copy link
Owner

you can use jquery to fill the input. and make sure the format is matching hijriFormat option
default hijriFormat is iDD-iMM-iYYYY

see docs for more informaiton

@mhdbashar
Copy link

for your kind to clarify how to fill the input using jquery, I can add value attribute to the input but it's still empty.

@Ahmed-Salah7
Copy link

go around :
set value as placeholder :)

@hamadaDev
Copy link

same problem
$('#mydateinput').val('29-08-1441');
this not make calender select the date and when open it the input go empty

@balbarak
Copy link
Owner

balbarak commented Apr 4, 2020

maybe you can only set the Gregorian date with the following format DD-MM-YYYY if you have not changed the default format

I will investigate more for hijri date

@hamadaDev
Copy link

hi
my problem Solved
the problem was hijri format
this is work with me fine
$('#mydateinput').val('30-11-2020');
$('#mydateinput_hijri').val('1441-08-29');

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

5 participants