title: Convert Device date and time to PST TimeZone
body: <p>As my title say that i need to convert my <code>iPhone</code> device date and time to <strong>PST</strong> timezone ?</p>
  
  <p>I got NSDate in NSString formate from server as <strong>PST Timezone</strong>, so i need to convert my current device time to <strong>PST Timezone</strong>. </p>
  
  <p>In my apps. i need to set minimum and maximum time of UIDatePicker such like </p>
  
  <p>minimum time = current time ;
  maximum time = Date <em>(string formate)</em> which i got it from server.</p>
  
  <p>I use following code </p>
  
  <pre><code>NSString *dateString = [[self.listOfDomains objectAtIndex:indexPath.row] objectForKey:@"ends_at"]; // got from Server 
      NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
      [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
      NSDate *maxDate = [[NSDate alloc] init];
      maxDate = [dateFormatter dateFromString:dateString];
  
      NSCalendar *calMax = [NSCalendar currentCalendar];
      NSDateComponents *pstCompoMax = [calMax components: NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit fromDate: maxDate];
      pstCompoMax.timeZone = [NSTimeZone timeZoneWithName: @"PST"];
      NSDate *pstMaxDate = [calMax dateFromComponents: pstCompoMax];
  </code></pre>
  
  <p>And use it in datePicker </p>
  
  <pre><code>[self.datePicker setMinimumDate:pstMinDate];
  [self.datePicker setMaximumDate:pstMaxDate];
  </code></pre>
  
  <p>But i can not able to set minimum and maximum date in datePicker.
  But if i only set minimum/maximum date of datePicker then it works..</p>
  
  <p>For solve my issue, i'm trying about 2 hour but i can not find any solution.</p>
  
  <blockquote>
    <p><strong>For Your Info :</strong> I'm using Xcode 5 and i need do it in iOS version 5 to Latter (iOS 7)</p>
  </blockquote>
  
  <p>Please help me on this issue,</p>
  
  <p>Thanks in advance.</p>