title: NSDate set timezone in swift
body: <p>how can i return a NSDate in a predefined time zone from a string</p>
  
  <pre><code>let responseString = "2015-8-17 GMT+05:30"
  var dFormatter = NSDateFormatter()
  dFormatter.dateFormat = "yyyy-M-dd ZZZZ"
  var serverTime = dFormatter.dateFromString(responseString)
  println("NSDate : \(serverTime!)")
  </code></pre>
  
  <p>the above code returns the time as</p>
  
  <pre><code>2015-08-16 18:30:00 +0000
  </code></pre>