title: change date format from 12/12/12 to 2012-12-12 ios6
body: <p>I have tried :               </p>
  
  <pre><code>  NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"MM/dd/yyyy"];
    NSDate *dateCheck = [dateFormatter dateFromString:@"12/12/12"];
    NSLog(@"Date = %@", dateCheck);
  </code></pre>
  
  <p>And the Output value is: <code>Date = 2012-12-11 18:30:00 +0000</code></p>
  
  <p>How Should I achieve the above result I don't know where the problem is.Please help.I would really appreciate the help.Thanks in Advance.</p>