title: Formatting out of a jQuery UI datepicker
body: <p>I'm having a problem trying to format the output on the jQuery UI datepicker.</p>
  
  <p>I want the dateformat to be the 'ISO 8601' format, like explained here:</p>
  
  <p><a href="http://jqueryui.com/demos/datepicker/#date-formats" rel="noreferrer">http://jqueryui.com/demos/datepicker/#date-formats</a></p>
  
  <p>This is what my code looks like:</p>
  
  <pre><code>$.datepicker.setDefaults($.datepicker.regional['nl']);
  $('.datepicker').datepicker('option', {dateFormat: 'yy-mm-dd' });
  </code></pre>