title: Validation of Date is not working
body: <p>I tried the following code earlier and it worked fine ,but now its not able to validate the date based on the format given.</p>
  
  <pre><code> NSDateFormatter *format = [[NSDateFormatter alloc] init];
  [format setDateStyle:NSDateFormatterShortStyle];
  [format setDateFormat:@"dd-MM-yyyy"];
  NSDate *validateDOB = [format dateFromString:textField.text];
  if (validateDOB != nil)
      return YES;
  else
      return NO;
  </code></pre>
  
  <p>When i am trying to validate date string as 24-12-199 , the validateDOB is returning the value as "0199-12-23 18:06:32 +0000"</p>