title: How to get weekdays array from system in Swift?
body: <p>How can I take an array with days of week from the system (from <code>NSDate</code>, I think)?</p>
  
  <p>Until now, I can only take the current day, but I'd like to be able to take all weekdays in an array.</p>
  
  <p>If the first day of week is set to Monday, my array would look like:</p>
  
  <pre><code>[ Mon, Tue, Wed... ]
  </code></pre>
  
  <p>If the first day of week is Sunday, my array would look like:</p>
  
  <pre><code>[Sun, Mon, Tue... ]
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>let dateNow = NSDate()
  let calendar = NSCalendar.currentCalendar()
  let components = calendar.components(.CalendarUnitHour | .CalendarUnitMinute | .CalendarUnitSecond | .CalendarUnitYear , fromDate: dateNow) 
  
  /*This is the way how i take system time */ 
  
  let format = NSDateFormatter()
  format.dateFormat = "EEE"
  stringDay = format.stringFromDate(dateNow) 
  </code></pre>