iphone - NSDate - Convert Date to GMT -
I need the ability to change to a NSDate
value GMT date.
How can I go about converting NSDate
value to GMT format to a NSDate
value, which is used by the iPhone The known date is independent of the locale setting?
NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init]; DateFormatter.dateFormat = @ "yyyy-MM-dd'THH: mm"; Nstmezone * GMT = [Nstimeon TimezoneWithAbet: @ "GMT"]; [DateTimeSetimezone: GMT]; NSString * timestamp = [datefirm string string: [date of NSDT]]; [DateFormatter release];
Comments
Post a Comment