Thursday, 8 November 2012

Comparison Between two Dates....


+ (BOOL)date:(NSDate*)date isBetweenDate:(NSDate*)beginDate andDate:(NSDate*)endDate
{
    if ([date compare:beginDate] == NSOrderedAscending)
     return NO;

    if ([date compare:endDate] == NSOrderedDescending) 
     return NO;

    return YES;
}

No comments:

Post a Comment