title: How to convert buddhist Date To Gregorian Date Properly iOS
body: <p>How to convert <strong>Jan 27, 2557</strong> a Buddhist date into <strong>Jan 27, 2013</strong>. </p>
  
  <p>Yes, I'm aware that If I subtract 543 from 2557 I'll get 2014. However, I want it to solve using NSDateFormatter.</p>
  
  <p>Here my code:</p>
  
  <pre><code>dateFormatter = [[NSDateFormatter alloc] init];
  dateFormatter.calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
  
   TimeZone *timeZone = [NSTimeZone timeZoneWithName:@"UTC"];
  [dateFormatter setTimeZone:timeZone];
  [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSSS'Z'"];
  
  // Buddhist date should be converted to Gregorian date. But the
  // Date still in Buddhist form
  NSDate *gregDate = [dateFormatter dateFromString:buddhistDate];
  </code></pre>
  
  <p>Thank you.</p>