title: jQuery date formatting to YYYY-MM-DD from conventional form
body: <p>My jQuery date-picker is outputting something like this:</p>
  
  <blockquote>
    <p>junio 6, 2018 (or june 6, 2018)</p>
  </blockquote>
  
  <p>I would like to convert this like <code>06-06-2018</code> or <code>2018-06-06</code> or this format: <code>YYYY-MM-DD</code>.</p>
  
  <p>I have searched on SO but didn't find a solution for this. This is something new to me.</p>
  
  <p>I tried the following:</p>
  
  <pre><code>Jan == 01,
  Feb == 02,
  ...
  </code></pre>
  
  <p>But couldn't find a solution yet.</p>