NSDate *localDate = [NSDate date];
NSTimeInterval timeZoneOffset = [[NSTimeZone systemTimeZone] secondsFromGMTForDate:localDate];
NSDate *gmtDate = [localDate dateByAddingTimeInterval:-timeZoneOffset];
This gives me time in 12 hours format. So, for example it is is 2.15 pm. It gives me 2016-01-16 02:15:00 +0000.
However, I want in 24 hours format like 14:15:00. Also I want just the time. How can I get that.