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

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -