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

Datepicker direction not working for format 'd M Y' #173

Closed
atiq25101990 opened this issue May 6, 2021 · 3 comments
Closed

Datepicker direction not working for format 'd M Y' #173

atiq25101990 opened this issue May 6, 2021 · 3 comments

Comments

@atiq25101990
Copy link

Hi Stefan,

I tried using the date picker and it fails in the following scenario when format is 'd M Y':
Future Date Only: ["6 May 2021", "6 May 2022"]
Past Date Only: ["6 May 2020", "6 May 2021"]
Date in Range: ["29 Apr 2011", "14 May 2031"]

Please check and provide any quick fix to a plugin.
Date does not work

Thanks and regards,
Atiq.

@stefangabos
Copy link
Owner

stefangabos commented May 6, 2021

That's because 6 May 2021 is valid only if the format is j M Y
d expects leading 0

@stefangabos
Copy link
Owner

stefangabos commented May 6, 2021

I pushed an update where now things will work with and without leading zeroes, for all formats mentioning it, like d, j, m, and n. not a release yet but out there for testing

@atiq25101990
Copy link
Author

atiq25101990 commented May 6, 2021

Format j M Y works well. Thank you so much Stefan. Much appreciated.

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