title: How to convert string into NSDate format?
body: <p>i want to convert the string into nsdate format.</p>
  
  <p>here is my string NSString str=@"Sunday, June 6, 2010 5:00:00 AM CDT";</p>
  
  <p>my code is  </p>
  
  <pre><code>        NSDateFormatter * Dateformats= [[NSDateFormatter alloc] init];
  
          [Dateformats setDateFormat:@"MM/DD/yyyy hh:mm:ss"]; //ex @"MM/DD/yyyy hh:mm:ss" 
          NSDate *myDate=[Dateformats dateFromString:str];
          NSLog(@"%@",myDate);
  </code></pre>
  
  <p>but it is displays null so show me the way to display the date in MM/DD/yyyy hh:mm:ss</p>
  
  <p>please friends help me ,how to do this</p>