title: How to create Date from Components in Swift 3
body: <p>I've stored day in a month and time. I am creating a notification and I need to do a little calculation and then create a date. I stuck at the part where I "glue" all parts into <code>Date</code> so I can create fireDate.</p>
  
  <p>I'm not really sure how this works although I'm trying to figure it out using Apple documentation. As I gathered I need <code>DateComponents</code> but then I don't know how to proceed. There is only an <code>init()</code> method that takes so many parameters.</p>
  
  <p>For now I have very little code:</p>
  
  <pre><code>let calendar = Calendar(identifier: .gregorian)
  let components = DateComponents()
  calendar.date(from: components)
  </code></pre>
  
  <p>Can somebody please clarify this for me?
  Thanks a bunch.</p>