Pikaday field: Invalid date
See original GitHub issueWhen I use a pikaday field with no special options, I get “Invalid date” in the field.
I can see the good value for a fraction of a second but then it get replaced by this message.
This problem don’t appear with the dev environment, and I suspect it has something to do with Moment.js (or the lack of it to be precise).
I experimented a bit with format
, but nothing change that.
For now I will send a PR which don’t add any default values (except field
) in pikadayOptions.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Invalid Date using moment.js and Pikaday - Stack Overflow
Im trying to pass a user selected date using ...
Read more >Translate “Invalid date” message of Pikaday datepicker
Hello,. when I enter some non-numeric characters (i.e. “aaa”) into the datepicker input field and leave the field, it replaces the input with...
Read more >ember-pikaday - npm
While the input shows a formatted date to the user, the value attribute can be any valid JavaScript date including Date object.
Read more >Date Range Picker — JavaScript Date & Time Picker Library
$('input[name="daterange"]').daterangepicker({. opens: 'left'. }, function(start, end, label) {. console.log("A new date selection was made: " + ...
Read more >Date picker format validation if not blank - Not working
Solved: Hi, I have a date picker which is not a mandatory field. ... I have an error message label which shows invalid...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I edited the doc and pointed to this issue
For quick solution please add the momentjs to pikaday as dependencies in the documentation. If I have more time, I will try to find the exact problem.