Questions tagged [pikaday]

A lightweight, no-dependency JavaScript date picker.

It's a lightweight Datepicker with no dependencies (however some features related with Date formats needs moment.js) and could be a good alternative for jquery or other date-pickers.

https://github.com/dbushell/Pikaday

101 questions
12
votes
4 answers

Pikaday date formatting without Moment.js

I'm using Pikaday, which requires Moment.js to format dates. This allows easy date formatting: var picker = new Pikaday({ format: 'YYYY-MM-DD' }); However, when I include the Pikaday npm package, Moment.js is over 40kb. Literally all I need it…
j_d
  • 2,818
  • 9
  • 50
  • 91
11
votes
2 answers

How to make Pikaday datepicker always visible

I'm using the Pikaday javascript datepicker. The default functionality is to attach it to an input whereby clicking the input would load the datepicker and its position would be relative to the input. What I want is to use this library to show an…
oym
  • 6,983
  • 16
  • 62
  • 88
6
votes
2 answers

"getDate().toJSON()" loses a day

I'm using the pikaday date picker plugin (through an angular directive and with momentjs) and sending the value to the server. Converting to json seems to lose a day though: var d = myPikaObject.getDate(); console.log(d); // Thu Apr 30…
jcuenod
  • 55,835
  • 14
  • 65
  • 102
5
votes
3 answers

Pikaday JS How to use full day and month names for input format without moment js

I'm using Pikaday.js like so: new Pikaday({ field: document.getElementById('top-banner-datepicker'), minDate: new Date() I know that the answer lies in this example from the documentation: var picker = new Pikaday({ …
HandiworkNYC.com
  • 10,914
  • 25
  • 92
  • 154
5
votes
3 answers

how do I format date when using pikaday

I am using pikaday module for datepicker, but the format comes as inappropriate format. I tried adding this line of code but still not working: .config(['pikadayConfigProvider', function (pikaday) { pikaday.setConfig({ numberOfMonths:…
mizlul
  • 75
  • 1
  • 9
4
votes
3 answers

Pikaday i18n still showing names of the days and months in english

I'm using pikaday with the i18n option with names of the months and days in spanish, my problem is that in the input text/placeholder still shows the english names of said months. This is my JS code: var picker = new Pikaday( { …
Progs
  • 1,059
  • 7
  • 27
  • 63
4
votes
2 answers

How can I use Pikaday with ReactJS?

I would like to use the Pikaday datepicker with ReactJS. It is not based on ReactJS. How can I use it?
Cymen
  • 14,079
  • 4
  • 52
  • 72
4
votes
4 answers

Multiple datepicker using Pikaday

Im using Pikaday as a datepicker because JQuery Datepicker is having conflict with Prototype Library. A few issues here. How do i use pikaday datepicker in multiple text box How to format the date. Previously by using JQuery Datepicker, to…
user1852728
  • 161
  • 2
  • 6
  • 13
3
votes
1 answer

Pikaday calendar date format not working

I'm using the Pikaday calendar library but the date format seems to be being ignored. I have this code: