title: Convert NSDate to mm/dd/yyyy
body: <p>I know this question is similar to others asked, but I can't find where my code is going wrong. I am trying to convert the current date into a mm/dd/yyyy format. Here is what I am using:</p>
  
  <pre><code>NSDate *date = [[NSDate alloc]init];
  
  NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
  [formatter setDateFormat:@"mm/dd/yyyy"];
  
  NSLog(@"%@", [formatter stringFromDate:date]);
  </code></pre>
  
  <p>The problem is the month. Every time I run this code, the month is different. For example the first time my date was 32/11/2012, and I just ran it and it was 55/11/2012.</p>
  
  <p>Is there a reason why this would keep changing? The days and years appear to be fine.</p>
  
  <p>Thanks.</p>