title: NSTimezone how to set CST to nsdateformater
body: <p>all</p>
  
  <p>I'm new to ios programming.
  I want to set CST in the method </p>
  
  <pre><code>[dateFormatter setTimeZone:]
  </code></pre>
  
  <p>I have created a sample project to get all known timezones
  Code is here:</p>
  
  <pre><code>NSArray *timeZoneNames = [NSTimeZone knownTimeZoneNames];
  
  for (NSTimeZone *timezon in timeZoneNames) {
  
      NSLog(@"%@",timezon);
  }
  </code></pre>
  
  <p>It gives the following result:</p>
  
  <p>[Session started at 2011-09-28 09:50:28 +0530.]
  2011-09-28 09:50:29.535 Timezonetest[10352:207] Africa/Abidjan</p>
  
  <p>2011-09-28 09:50:29.537 Timezonetest[10352:207] Africa/Accra</p>
  
  <p>2011-09-28 09:50:29.537 Timezonetest[10352:207] Africa/Addis_Ababa</p>
  
  <p>2011-09-28 09:50:29.538 Timezonetest[10352:207] Africa/Algiers</p>
  
  <p>........................</p>
  
  <p>........................</p>
  
  <p>........................</p>
  
  <p>........................</p>
  
  <p>2011-09-28 09:50:29.765 Timezonetest[10352:207] Pacific/Pago_Pago</p>
  
  <p>2011-09-28 09:50:29.766 Timezonetest[10352:207] Pacific/Palau</p>
  
  <p>2011-09-28 09:50:29.766 Timezonetest[10352:207] Pacific/Pitcairn</p>
  
  <p>2011-09-28 09:50:29.767 Timezonetest[10352:207] Pacific/Pohnpei</p>
  
  <p>2011-09-28 09:50:29.768 Timezonetest[10352:207] Pacific/Ponape</p>
  
  <p>2011-09-28 09:50:29.769 Timezonetest[10352:207] Pacific/Port_Moresby</p>
  
  <p>2011-09-28 09:50:29.773 Timezonetest[10352:207] Pacific/Rarotonga</p>
  
  <p>2011-09-28 09:50:29.775 Timezonetest[10352:207] Pacific/Saipan</p>
  
  <p>2011-09-28 09:50:29.775 Timezonetest[10352:207] Pacific/Tahiti</p>
  
  <p>2011-09-28 09:50:29.776 Timezonetest[10352:207] Pacific/Tarawa</p>
  
  <p>2011-09-28 09:50:29.776 Timezonetest[10352:207] Pacific/Tongatapu</p>
  
  <p>2011-09-28 09:50:29.777 Timezonetest[10352:207] Pacific/Truk</p>
  
  <p>2011-09-28 09:50:29.778 Timezonetest[10352:207] Pacific/Wake</p>
  
  <p>2011-09-28 09:50:29.778 Timezonetest[10352:207] Pacific/Wallis</p>
  
  <p>Anyone can say which is the name for CST(central Standard timezone) in the above list
  Thanks in Advance</p>