Unable to convert UTC time to local time?
<p>I am getting UTC time string from server as "8/27/2016 6:56:23 AM"</p>

<p>I need to convert this date to my local time zone.</p>

<pre><code>NSString *dateFormat = @"dd/MM/yyyy HH:mm:ss a";
NSTimeZone *inputTimeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"];
NSDateFormatter *inputDateFormatter = [[NSDateFormatter alloc] init];
[inputDateFormatter setTimeZone:inputTimeZone];
[inputDateFormatter setDateFormat:dateFormat];

**NSDate *date = [inputDateFormatter dateFromString:_strLiveStreamStartTime];**

NSTimeZone *outputTimeZone = [NSTimeZone localTimeZone];
NSDateFormatter *outputDateFormatter = [[NSDateFormatter alloc] init];
[outputDateFormatter setTimeZone:outputTimeZone];
[outputDateFormatter setDateFormat:dateFormat];
NSString *outputString = [outputDateFormatter stringFromDate:date];

NSLog(@"%@",outputString);
</code></pre>

<p>The problem is when i covert server string into date it gives me null value.
Please help me to solve this. I google it and implement some solution but unable to get.</p>