title: convert date string to NSDate in objective c/iOS
body: <p>I have this string ----> Sun, 16 Dec 2012 15:30:22 +0000</p>
  
  <p>I want to convert it to NSDate. I have tried the below code but it is giving me null</p>
  
  <pre><code>NSDateFormatter *df = [[NSDateFormatter alloc] init];
  
  [df setDateFormat:@"yyyy-MM-dd hh:mm:ss a"];
  
  NSDate *date = [[NSDate alloc] init];
  
  date = [df dateFromString: @"Sun, 16 Dec 2012 15:30:22 +0000"];
  
  NSLog(@"date: %@", date);
  </code></pre>
  
  <p>I am not getting the issue ?</p>
  
  <p>Any guidance plz</p>