title: moment vs date-fns locale date formats
body: <p>I'm evaluating DateFns and Moment in the context of our app, and found what appears to be an important omission in DateFns.</p>
  
  <p>In Moment, locale support allows you to format locale-correct representations of a date or time. For instance, the date formats "LL" and "L" will produce the following for the English locale:</p>
  
  <pre><code>November 27, 2017
  11/27/2017
  </code></pre>
  
  <p>And the following for the Spanish locale:</p>
  
  <pre><code>27 de noviembre de 2017
  27/11/2017
  </code></pre>
  
  <p>Note in particular that in the second example, the month comes before the day in English, whereas the day comes before the month in Spanish. That's exactly the kind of thing you want locale code to handle for you. This is how locales work in almost all datetime libraries (C++, C#, Java, Python, etc.)</p>
  
  <p>In the DateFns, there doesn't appear to be a <a href="https://date-fns.org/v1.29.0/docs/format" rel="noreferrer">format option for locale-correct long date, short date, time, etc.</a>.  The example they give for using a locale requires that you pass it the locale-specific format string:</p>
  
  <pre><code>// Represent 2 July 2014 in Esperanto:
  var eoLocale = require('date-fns/locale/eo')
  var result = format(
    new Date(2014, 6, 2),
    'Do [de] MMMM YYYY',
    {locale: eoLocale}
  )
  </code></pre>
  
  <p>In other words, I need to know the date/time format for every locale I support, which defeats the purpose of having locale support in the first place.]</p>
  
  <p>I can use Javascript's toLocaleString, but then my app it managing locale two different ways.</p>
  
  <p>Is there some way of printing out, say, a "short date" for a particular locale without me telling DateFns what the format for that locale is?</p>