day for Date() and Calendar.dateComponents don't match up
<p>I'm trying to get the current date to print in a particular format (YYYYMMD) for AWS security credentials and I noticed that when I do <code>Date()</code>, the day is the 4th which is the correct value:</p>

<pre><code>    let date = Date()
    print("\(date)")  //2016-10-04 00:56:28 +0000
</code></pre>

<p>Now, I want to print the date in the format I desire so, but I keep getting the day value as the 3rd:</p>

<pre><code>    let calendar = Calendar.current
    let date = Date()
    let components = calendar.dateComponents([.day], from: date)
    print("\(components.day)")  //Optional(3)
</code></pre>

<p>S3 is expecting the date to be the 4th.  How can I fix this?  </p>