I’ve been browsing the Apple docs for a while now, but haven’t seen a way to get the current Date from a different time zone. Basically, I need to get the current date in US Central Standard Time (CST). I’m pretty sure it’s a combination of NSDate and NSDateFormatter by setting the time zone. I’m sure this is an easy task, but I haven’t been able to figure out the best way to do this.
Is there something I’m missing here?
If you want just display current time for a given zone you need to set NSDateFormatter’s timeZone property:
If you want an NSDate object containing time from a given zone you need to set default time zone before retrieving that date: