title: How to format a Date with Luxon?
body: <p>With moment.js, you can format a date this way:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const date = moment("2010-10-22T21:38:00");
  const data = date.format("LL - LT") 
  console.log(data)</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js" integrity="sha512-Izh34nqeeR7/nwthfeE0SI3c8uhFSnqxV0sI9TvTcXiFJkMd6fB644O64BRq2P/LA/+7eRvCw4GmLsXksyTHBg==" crossorigin="anonymous"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>How to do the same thing with Luxon? I've tried:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const date = luxon.DateTime.fromISO("2010-10-22T21:38:00" );
  const data = luxon.DateTime.fromFormat(date, "DATETIME_SHORT")
  // output =&gt; script error</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdn.jsdelivr.net/npm/luxon@1.25.0/build/global/luxon.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>