#pragma mark - 判断时间段
- (BOOL)date:(NSDate*)dateisBetweenDate:(NSDate*)beginDateandDate:(NSDate*)endDate
{
if([datecompare:beginDate] ==NSOrderedAscending)
returnNO;
if([datecompare:endDate] ==NSOrderedDescending)
returnNO;
returnYES;
}
#pragma mark - 判断时间段
- (BOOL)date:(NSDate*)dateisBetweenDate:(NSDate*)beginDateandDate:(NSDate*)endDate
{
if([datecompare:beginDate] ==NSOrderedAscending)
returnNO;
if([datecompare:endDate] ==NSOrderedDescending)
returnNO;
returnYES;
}