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.

pickadate.get('view'); doesn't return correct data

See original GitHub issue

It seems the picker.get('view') is having problem.

Even on the documentation : http://amsul.ca/pickadate.js/api/#method-get-view if

Everytime it returns : 2015/11/01. Here a screenshot on my problem.

capture d ecran 2015-11-25 a 11 49 29

Date I see is 2015/11/25. Date I get with datePicker.get('view', 'yyyy/mm/dd'); // "2015/11/01"

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
amsulcommented, Oct 14, 2016

You’re looking for select, not view. Re-read the api docs 😉 : http://amsul.ca/pickadate.js/api/#method-get-select

0reactions
benoittgtcommented, Oct 15, 2016

Thanks @amsul

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default values doesn't show the correct values #157 - GitHub
Hi, I'm having the same issue here, only in the mobile version of my site. When I use the data-value attribute, the field...
Read more >
Pickadate.js does not open on click - Stack Overflow
After Version 3.5.4 the pickadate plugin is not binding any events when passing the "editable: true" parameter. We've had to bind the click...
Read more >
API – pickadate.js - Amsul
Returns the item object or formatted string of the date that is visually selected. Defaults to null when there's no value . picker.get('select')...
Read more >
Pickadate.js • Documentation - jQuery Script
If your input field has a custom date format or language that doesn't easily parse as a date, you can specify the date...
Read more >
amsul/pickadate.js - Gitter
According to the docs, in order to have a all dates disabled but a few you pass in an array [true, ['2018,04,20']] or...
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