title: Converting NSString to NSDate - wrong format
body: <p>Hi I am trying to convert a string into NSDate format - but it returns value with wrong format and  also in GMT time.</p>
  
  <pre><code> NSString *myString = @"10:30 AM";
   NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
   NSTimeZone *local = [NSTimeZone systemTimeZone];
   dateFormatter.dateFormat = @"hh:mm a";
  [dateFormatter setTimeZone:local];
   NSDate *myDate = [dateFormatter dateFromString:myString];
  
  
  
  NSLog(@"myDate---%@",myDate);
  </code></pre>
  
  <p>But this returns </p>
  
  <pre><code>  myDate---2000-01-01 05:30:00 +0000
  </code></pre>
  
  <p>Where I am making the mistake, what to do to get the date as 10:30 AM, Please help me to fix this.
  Thanks in advance</p>