title: Create a date with a locale in moment
body: <p>I am trying to generate a EU date, which is typically in the format of <code>DD/MM/YYYY</code>.</p>
  
  <pre><code>// August 1st, 2018, EU format is DD/MM/YYYY
  const myDate = moment('01/08/2018').locale('fr'); 
  console.log(myDate.format('MM/DD/YYYY'));
  </code></pre>
  
  <p>Try pasting this code in <a href="http://momentjs.com" rel="nofollow noreferrer">momentjs.com</a> console, and it doesn't work.</p>
  
  <p>I expected <code>08/01/2018</code>, however I get <code>01/08/2018</code> back. It seems like it doesn't respect the locale date format.</p>
  
  <p>Anyone have any idea how to fix this?</p>