title: cannot convert value of type date to expected argument type date
body: <p>I am using Swift 3 and trying to get the current hour. Below is the code i have written to get the current hour but it gives an error.</p>
  
  <pre><code>let date = Date()
  let calendar = Calendar.current
  let hour = calendar.component(.hour, from: date) // error
  </code></pre>
  
  <p>What could be the reason for this, all the sample code based on Swift 3 shows the same code snippet to get the current hour but it just don't seem to work. Please can anyone point out what could be wrong here. Thanks.</p>