title: Convert string YYMMDD to YYYYMMDD in JavaScript
body: <p>I am just wondering is it possible to convert a date string <code>YYMMDD</code> to <code>YYYY-MM-DD</code>, in example <code>990102</code> -> <code>1999-01-02</code> in JavaScript?</p>
  
  <p>EDIT from a comment :</p>
  
  <p>If date <code>200102</code> is provided it need to output <code>2012-01-02</code>, not <code>1920-01-02</code></p>