title: Get the time and date of selected time zone?
body: <p>I tried below snippet I'm getting current date and time of system instead of the selected time zone code.</p>
  
  <pre><code>NSDate *now = [NSDate date];
  NSCalendar *gregorian=[[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
  [gregorian setTimeZone:[NSTimeZone timeZoneWithName:selectedzone]];
  
  NSDateComponents* timeZoneComps = [gregorian components:NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit|NSHourCalendarUnit|NSMinuteCalendarUnit|NSSecondCalendarUnit|NSTimeZoneCalendarUnit fromDate:now];
  
  NSDate *selectedDate=[gregorian dateFromComponents:timeZoneComps];
  NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
  [formatter setDateStyle:NSDateFormatterFullStyle];
  [formatter setDateFormat:@"dd-MM-yyyy HH:mm:ss "];
  NSString *strSelectedDate= [formatter stringFromDate:selectedDate];
  setZone.text = strSelectedDate;` 
  </code></pre>
  
  <p>Any ideas?</p>