title: How to get the right date from string using Date Formatter
body: <p>I want to get NSDate from a string. The input strings are in format of : "2014-06-27 15:21:02"</p>
  
  <p>I use the code below but i get nil:</p>
  
  <pre><code>NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
  [dateFormatter setDateFormat:@"yyyy-MM-DD hh:mm:ss"];
  NSDate *dateFromString = [[NSDate alloc] init];
  dateFromString = [dateFormatter dateFromString:edditedString];
  </code></pre>