title: Pikaday date formatting without Moment.js
body: <p>I'm using <a href="https://github.com/dbushell/Pikaday" rel="noreferrer">Pikaday</a>, which requires <a href="http://momentjs.com/docs/" rel="noreferrer">Moment.js</a> to format dates. This allows easy date formatting:</p>
  
  <pre><code>var picker = new Pikaday({
    format: 'YYYY-MM-DD'
  });
  </code></pre>
  
  <p>However, when I include the Pikaday npm package, Moment.js is <em>over 40kb</em>. Literally all I need it for is to change the date format to <code>YYYY-MM-DD</code> from the practically unusable default Pikaday format.</p>
  
  <p>Can I do this without having to include a 40kb library?</p>