title: Convert dd.mm.yyyy format to yyyy-mm-dd
body: <p>How can I convert dd.mm.yyyy format date to yyyy-mm-dd format in JavaScript?</p>
  
  <p>Here is an example:</p>
  
  <pre><code>30.01.2010
  to 
  2010-01-30
  </code></pre>
  
  <p>Meaning convert d.m.Y to Y-m-d. I know how to do this in PHP but I need it in JavaScript.</p>