title: Get list of abbreviated day of the week in moment using
body: <p>I am using moment and I want to get list of abbreviated day of the week.</p>
  <p>so <code>[&quot;Sun&quot;, &quot;Mon&quot;, &quot;Tue&quot;, &quot;Wed&quot;, &quot;Thu&quot;, &quot;Fri&quot;, &quot;Sat&quot;]</code></p>
  <p>I want to be able to use different languages to get these</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>let resultDates = []; // array to hold day names
  const current = moment(); // current date
  let n = 7; // days to go back
      while (n &gt; 0) {
        resultDates.push(current.format("dd"))
        current.subtract(1, "day")
        n--;
      }
  
      console.log(resultDates);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.37/moment-timezone.min.js" integrity="sha512-47dC/gEh5wtWWlul/EJWs2WuGzKoQmn5zn68ZL4gXalKmUhfmH3RkQsU4jTEV9Rmjf204INzBGHbG4xocf2PNw==" crossorigin="anonymous" referrerpolicy="no-referrer"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I was able to get a list of days but starts with today, how can I arrange it so it always start with Sunday? also I want to be able to use different languages like Spanish</p>