title: Why is that I'm getting "Invalid DateTime" in the following Luxon/Moment code?
body: <pre><code>const dt = DateTime.fromISO(new Date(date))
  // dt =&gt; DateTime {ts: 1516876197386, zone: LocalZone, loc: Locale, invalid: "unparsable", weekData: null, …}
  return dt.toFormat('yyyy/mm/dd')
  </code></pre>
  
  <p>The result is: <code>Invalid DateTime</code>. Why is this and how to fix it?</p>
  
  <p>Luxon's docs: <a href="https://moment.github.io/luxon/docs/class/src/datetime.js~DateTime.html#instance-method-toFormat" rel="nofollow noreferrer">https://moment.github.io/luxon/docs/class/src/datetime.js~DateTime.html#instance-method-toFormat</a></p>