title: Momentjs get date and set format
body: <p>for a weight tracking project i want to get a date from a user in his specific format eg:"05-12-19" , and i want to format it with momentjs to the standard javascript format</p>
  
  <p>This code below is what i tried and think is the nearest to the result i want:</p>
  
  <pre><code>let newDate = moment().format("05-12-19","DD-MM-YYYY");
  console.log(newDate); //05-12-19 
  </code></pre>
  
  <p>the result that i was expecting is 05-12-2019 but got something different take a look here (trying to meet stack-overflows quality standards lol)</p>