title: Swift 4 : Set Different Date and Time
body: <p>I know how to get local date and time, but what I want to do is getting the date and time from different places. For example, I want to find out what the time and date is in New York. How can i solve this simple problem?</p>
  
  <p>Here is my code for local date and time :</p>
  
  <pre><code>let date = NSDate()
  let calendar = Calendar.current
  
  let components = calendar.dateComponents([.hour, .minute, .month, .year, .day, .second, .weekOfMonth], from: date as Date)
  
  let currentDate = calendar.date(from: components) 
  </code></pre>
  
  <p>I searched about it here, but i didn't find what i want and I'm still looking for the date libaries. If you know any source or sample to redirect me, I really appreciate that.</p>