title: How to format the date to IST?
body: <p>I have to format the date as below:  </p>
  
  <p>19-JUL-2014 10:27:16 IST  </p>
  
  <p>How can I do that?  Should I send "IST" as string object?</p>
  
  <p>I tried - </p>
  
  <pre><code>NSDate* sourceDate = [NSDate date];  
  NSLog(@"Date is : %@", sourceDate);  
  
  NSTimeZone *currentTimeZone = [NSTimeZone localTimeZone];  
  NSLog(@"TimeZone is : %@", currentTimeZone);  
  
  NSDateFormatter * dateFormatter = [[NSDateFormatter alloc]init]  ;
  dateFormatter setDateFormat:@"dd-MMM-yyyy HH:mm:ss Z"];  
  [dateFormatter setTimeZone:[NSTimeZone systemTimeZone]];  
  
  NSLog(@"%@",[dateFormatter stringFromDate:sourceDate]);  
  </code></pre>