title: How to determine users locale date format using javascript (format is dd/mm or mm/dd)?
body: <p>I am trying to determine users locale date format so that I can use it later to show date in specific format.</p>
  
  <p>I know I can use <code>toLocaleDateString()</code> to get the date format. </p>
  
  <p>Let's say I got <code>1/2/2017</code>. How to determine whether this is in <code>dd/mm</code> format or <code>mm/dd</code> format?</p>
  
  <p>One thing I have tried is I can get current date and month from <code>new Date()</code> and check based on that (manually).  When the date is <code>2/2/2016</code> or <code>3/3/2016</code> how to determine which one is date and which one is month?</p>
  
  <p>Is there any solution anybody has for this issue? </p>
  
  <p>Also I have looked into <code>moment.js</code>. If some solution available there also I will be happy to use that. </p>