Currently what I am doing is I am comparing some date say oldDate with today's date
NSDate *dt = [NSDate date];
NSComparisonResult result = [oldDate compare:dt];
if (result == NSOrderedAscending)
{
// do something
}
dt gives me today's date with time also. But I want just date and no time. How can I achieve it ?