```
NSString *dateString2 = record.trigger_end_date;
NSLog(@"dateString2  is%@%@",record.trigger_end_date,dateString2);
NSDateFormatter *formatter2 = [[NSDateFormatter alloc]init];
formatter2.dateFormat = @"yyyy-MM-dd";
NSDate *date2 = [formatter2 dateFromString:dateString2];
NSLog(@"date2 is%@",date2);

```

Here I'm getting log for `NSLog(@"dateString2 is%@%@",record.trigger_end_date,dateString2);` as `dateString2 is2014-04-30T00:00:002014-04-30T00:00:00`
but `NSLog(@"date2 is%@",date2); is date2 is(null)`