title: How to get local time zone date in swift 3
body: <p>I am getting year,month and day from a given date in this way.</p>
  
  <pre><code>let today=Date()
  var calendar = Calendar.current
  calendar.timeZone = .current
  let components = calendar.dateComponents([.year, .month, .day], from: today)    
  
  let day=components.day
  </code></pre>
  
  <p>But I'm getting one day ahead from my current day. How can I solve this?</p>