1
NSString * last_modified = [NSString stringWithFormat:@"%@",[[(NSHTTPURLResponse *)response allHeaderFields] objectForKey:@"Last-Modified"]];
NSLog(@"Last-Modified: %@ ", last_modified);
NSString *dateString = @"Tue, 11 Dec 2012 13:22:57 GMT";
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss zzz"];
NSDate *date = [dateFormatter dateFromString:dateString];
NSLog(@"date:%@",date);
這裏的日期時間顯示的是與當前印度時間不相等的時間。請給我一個建議最後修改文件的iphone數據格式化程序
感謝, 維賈雅恩