title: JavaScript: Get date format from culture settings
body: <p>I want to get Date format from my defined culture settings using JavaScript.
  My Culture is defined in Web.config File as:</p>
  
  <pre><code>&lt;globalization culture="en-GB"  uiCulture="en-GB"/&gt;
  </code></pre>
  
  <p>I am getting the defined Culture through</p>
  
  <pre><code>CultureInfo culture = System.Globalization.CultureInfo.CurrentUICulture;
  </code></pre>
  
  <p>and i am passing it to my client. And at Client side I am using momemt.js library to parse my json date in to actual date format.</p>
  
  <pre><code>var date = moment(JsonDate).toDate().toLocaleDateString(myCulture); //"en-GB"
  </code></pre>
  
  <p>and I am getting the date in the required date format as <code>"16/07/2016"</code>
  but I also want to get this Format as <code>dd/MM/yyyy</code> so that I can use this culture date format in my html (for date picker).</p>
  
  <p>Please let me know how can I get this date format using culture info at client side.</p>