I am writing an app that involves time zone. I want to grab the user\'s device time, lets call that dateA
, and I have a target date that will always be in EDT t
A NSDate
is stored in a timezone neutral way. It's up to the NSDateFormatter
to actually format for a given timezone using -[NSDateFormatter setTimeZone:]. If you want a string from NSDate
, there's also -[NSDate descriptionWithCalendarFormat:timeZone:locale:], but it's usually better to use a NSDateFormatter
instead.