title: Multiple datepicker using Pikaday
body: <p>Im using Pikaday as a datepicker because JQuery Datepicker is having conflict with  Prototype Library.</p>
  
  <p>A few issues here.</p>
  
  <ol>
  <li>How do i use pikaday datepicker in multiple  text box</li>
  <li>How to format the date.  Previously by using JQuery Datepicker, to change the format I only need to<br>
  add dateFormat:"dd M yy",</li>
  </ol>
  
  <p>Here is the sample code</p>
  
  <pre><code>&lt;input type="text" id="datepicker"&gt;
  
  &lt;script src="pikaday.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
  var picker = new Pikaday(
  {    
      changeMonth: true,
      changeYear: true,
      field: document.getElementById('datepicker'),
      firstDay: 1,
      minDate: new Date('2000-01-01'),
      maxDate: new Date('2020-12-31'),
      yearRange: [2000,2020]
  
  });
  
  &lt;/script&gt;
  </code></pre>