title: How to handle different date time formats using NSDateFormatter
body: <p>I have a String with a datetime format: "YYYY-MM-DD HH:MM:SS".</p>
  
  <p>I use this in my source code:</p>
  
  <pre><code>NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
  [formatter setDateFormat:@"%e. %B %Y"];
  NSString *test = [formatter stringFromDate:@"2010-01-10 13:55:15"];
  </code></pre>
  
  <p>I want to convert from "2010-01-10 13:55:15" to "10. January 2010".
  But my implementation does not work.</p>
  
  <p>What's wrong here?</p>
  
  <p>Thanks a lot in advance &amp; Best Regards.</p>
  
  <p>Updated source code:</p>
  
  <pre><code>[NSDateFormatter setDefaultFormatterBehavior:NSDateFormatterBehavior10_4];
  NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
  [formatter setDateFormat:@"%Y-%m-%d %H:%M:%S"];
  NSString *test1 = [formatter stringFromDate:@"2010-01-10 13:55:15"];
  
  NSDateFormatter *formatter1 = [[[NSDateFormatter alloc] init] autorelease];
  [formatter1 setDateFormat:@"%d. %M4 %Y"];
  NSString *test2 = [formatter1 stringFromDate:test1];
  </code></pre>