title: NSDateFormatter not returning correctly
body: <p>I am parsing an XML file and I'm trying to bring it into data that I can use in my iOS App.</p>
  
  <p>I have an NSMutableString called elementDate</p>
  
  <p>If I read the XML file in and do….</p>
  
  <pre><code>NSLog(@"Read date: %@", elementDate):
  </code></pre>
  
  <p>I get </p>
  
  <p>Read date: 2013-12-31</p>
  
  <p>which is what I expect.  But I need to now convert this to an NSDate</p>
  
  <p>So I declare a dateFormatter</p>
  
  <pre><code>  NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
      NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
      [dateFormatter setCalendar:calendar];
      [dateFormatter setDateFormat:@"yyyy-MM-dd"];
  </code></pre>
  
  <p>And then I do a </p>
  
  <pre><code>NSLog(@"Date From String: %@", [dateFormatter dateFromString:elementDate]);
  </code></pre>
  
  <p>The result is:</p>
  
  <p>Date From String: (null)</p>
  
  <p>What simple thing am I missing?</p>