title: Getting incorrect day for the given time format
body: <p>I have a time given like so..
  <code>var utcTime = &quot;\(dic[&quot;Due_Date&quot;]!)&quot;</code></p>
  <p>Here the <code>utcTime</code> displays <code>&quot;2020-08-23T18:49:15&quot;</code></p>
  <p>I’m splitting it into different components like so..</p>
  <pre><code>self.dateFormatter.dateFormat = &quot;yyyy-MM-dd'T'HH:mm:ss&quot;
  self.dateFormatter.locale = Locale(identifier: &quot;en_US&quot;)
  self.dateFormatter.timeZone = TimeZone(abbreviation: &quot;UTC&quot;) 
     
  if let date = dateFormatter.date(from:utcTime) {
      let monthInt = Calendar.current.component(.month, from: date) //Displays 8
      let dayInt = Calendar.current.component(.day, from: date) //Displays 24 instead of 23
      let yearInt = Calendar.current.component(.year, from: date) //Displays 2020
  }
  </code></pre>
  <p>Here I’m getting all the components proper except the day. While the <code>utcTime</code> displays <code>&quot;2020-08-23T18:49:15&quot;</code>, the day instead of displaying 23 displays 24. The day is given by <code>dayInt</code> above.</p>