Commit 22fa30c2 authored by 曹云霄's avatar 曹云霄

修改项说明:

parent 6e32a8f9
......@@ -573,15 +573,16 @@
@return 是否比当前时间大
*/
//+ (BOOL)compareDateString:(NSString *)dateString
//{
// NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
// [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm"];
// NSDate *endDate = [dateFormatter dateFromString:end];
// if ([endDate compare:[NSDate date]] == NSOrderedAscending) {
//
// }
//}
+ (BOOL)compareDateString:(NSString *)dateString
{
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSDate *endDate = [dateFormatter dateFromString:dateString];
if ([endDate compare:[NSDate date]] == NSOrderedAscending) {
return YES;
}
return NO;
}
- (void)dealloc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment