hi i want to know how to get current date? i want to compare current date with a date i m fetching from a plist files using following code.
NSDate *expDate =
To get the current date, simply use:
NSDate * today = [NSDate date];
To compare to another date:
if ([today compare:expirationDate] == NSOrderedAscending) { // today's date is before the expiration date }