title: Extract day, month, year from a YYYY-DD-MM string in Javascript
body: <p>I am finding the best solution for extracting day, month, year from string with <code>YYYY-DD-MM</code> in Javascript:</p>
  
  <p>Extract from:</p>
  
  <p><code>2019-25-01</code></p>
  
  <p>To object:</p>
  
  <p><code>{ day: 25, month: 01, year: 2019 }</code></p>
  
  <p>What is the best way to do it. Thank in advance!</p>