I’m trying to create an NSDate with dateWithTimeIntervalSince1970 but I keep getting an NSInvalidArgumentException. I can’t figure out what’s wrong with my syntax:
// [mutableItem valueForKey:@"date"] is a string which represents an integer of milliseconds
NSDate *dateObject = [NSDate dateWithTimeIntervalSince1970:([[mutableItem valueForKey:@"date"] longLongValue]/1000)];
Can anyone see what’s wrong with this?
Can you check your mutableItem value?
Here’s my working example: