question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pikaday field: Invalid date

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lionel-bijaouicommented, Sep 1, 2016

I edited the doc and pointed to this issue

1reaction
icebobcommented, Sep 1, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found