title: How to format a NSDate in dd/MM/YYYY
body: <p>I'm trying to get an NSDate into the format: <strong>20/05/2014 22:30</strong>    </p>
  
  <p>here's the code I currently have. 
      <code>[dateFormat setDateFormat:@"YYYY-MM-dd\'T\'HH:mm:ssZZZZZ"];</code>
   this works but the format is not like <strong>20/05/2014 22:30</strong> it displays the date in format like: 12-03-2013 12:00:00 +00:00:00 </p>
  
  <p>and then when I use:</p>
  
  <p><code>[dateFormat setDateFormat:@"MM/dd/yyyy"];</code> I get a <code>null</code> value returned instead of a formatted date.</p>
  
  <pre><code>// timestamp conversion
      NSString *str = [timeStamp objectAtIndex:indexPath.row];
      // convert to date
      NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    //  [dateFormat setDateFormat:@"YYYY-MM-dd\'T\'HH:mm:ssZZZZZ"];
  
   [dateFormat setDateFormat:@"MM/dd/yyyy"];
  
      NSDate *dte = [dateFormat dateFromString:str];
      cell.timeStampLabel.text = [NSString stringWithFormat:@"%@",dte ];
  </code></pre>
  
  <p>the str original string output before formatting is <code>str 2013-08-23T15:21:19+02:00</code></p>
  
  <p>thanks for any help</p>