title: Convert NSDate to other format
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5087173/nsdateformatter-and-yyyy-mm-dd">NSDateFormatter and yyyy-MM-dd</a>  </p>
  </blockquote>
  
  
  
  <p>I have an NSDate variable in format yyyy-MM-dd that I want to convert to dd/MM/yyyy. How can I do it?</p>
  
  <pre><code>NSDateFormatter *f = [[NSDateFormatter alloc] init];
  [f setDateFormat:@"yyyy-MM-dd"];            
  NSDate *date = [f dateFromString:[[jugador objectAtIndex:0] valueForKey:@"FECHA_NAC"]];
  </code></pre>
  
  <p>Thanks</p>