title: Typescript parse string dd-mm-yyyy to date
body: <p>I have date from datetimepicker in this format "14-02-2018". Value is string.
  I must parse this value to date. I try this way:</p>
  
  <pre><code>new Date(Date.parse('02-03-2018))
  </code></pre>
  
  <p>But it works only if the format is 2018-03-02
  In moment I can't parse too.</p>
  
  <pre><code>var aaa = moment(itemvalue, "DD-MM-YYYY");
  </code></pre>