title: Date formatter returns nil for June
body: <p>I have a strange problem with those lines of code :</p>
  
  <pre><code>NSDateFormatter * df = [[NSDateFormatter alloc] init];
  [df setDateFormat:@"MMyyyy"];
  NSDate * date = [df dateFromString:@"062008"];
  NSLog(@"Date %@", date);
  </code></pre>
  
  <p>The result is :</p>
  
  <pre><code> Date (null)
  </code></pre>
  
  <p>But when I change the month like this :</p>
  
  <pre><code>NSDateFormatter * df = [[NSDateFormatter alloc] init];
  [df setDateFormat:@"MMyyyy"];
  NSDate * date = [df dateFromString:@"072008"];
  NSLog(@"Date %@", date);
  </code></pre>
  
  <p>The result is :</p>
  
  <pre><code>Date 2008-06-30 23:00:00 +0000
  </code></pre>
  
  <p>For only the month of June (06), the date conversion from string fails !</p>
  
  <p>I think, it's something related to timezone, any ideas.</p>
  
  <p>Thanks</p>
  
  <p>solved :</p>
  
  <pre><code>[df setTimeZone:[NSTimeZone timeZoneWithName:@"GMT"]];
  </code></pre>
  
  <p>As I thought, it's related to timezone.</p>