Frage

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..

War es hilfreich?

Lösung

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

[NSPredicate predicateWithFormat:@“%@ >= startDate and %@ <= endDate”, [NSDate date], [NSDate date]];
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top