문제

How to store Date from internet like "2014-12-01T20:00:00Z" in core data and compare this date with [NSDate Date] using nspredicate. as i am using @((date" >= startDate) && (date <= endDate))..But it fails to match date always..

도움이 되었습니까?

해결책

Just store startDate and endDate as NSDate. Predicate for this:

[NSPredicate predicateWithFormat:@“%@ >= startDate and %@ <= endDate”, [NSDate date], [NSDate date]];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top