title: moment.js: how to get short date format?
body: <p>My application sends an HTML file with javascript like this:</p>
  
  <pre><code>$(function () {
      moment.locale('fr');
      $('#datetimepicker9').datetimepicker({
          viewMode: 'years',
          locale: 'fr',
          format: '' /* &lt;========= problem! */
      });
  });
  </code></pre>
  
  <p>With moment, when I set to a locale, is there a way to get the short date format of the configuration like "<code>'j F Y'</code>" for <code>fr</code>?</p>
  
  <p>I found it but it's hack-ish:</p>
  
  <pre><code>moment()['_locale']['_longDateFormat']['L']
  </code></pre>
  
  <p>So my code now:</p>
  
  <pre><code>$(function () {
      moment.locale('fr');
      $('#datetimepicker9').datetimepicker({
          viewMode: 'years',
          locale: 'fr',
          format: moment()['_locale']['_longDateFormat']['L']
      });
  });
  </code></pre>
  
  <p>I dont like that, is there a clean way to get the format?</p>