title: how to get day from date format
body: <p>I get date from API like that <code>6-21-2021</code> and how can I grab day from this?
  I have created array of week days</p>
  <pre><code>let days: string[] = [
    &quot;Sunday&quot;,
    &quot;Monday&quot;,
    &quot;Tuesday&quot;,
    &quot;Wednesday&quot;,
    &quot;Thursday&quot;,
    &quot;Friday&quot;,
    &quot;Saturday&quot;,
  ];
  </code></pre>
  <p>and is there any solution to get day?</p>