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

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -