Hi,
I am developing an iPad application in which I need to convert a string in the format "Wed, 13 May 2009 05:36:20 MDT" to NSDate.
I am using the following code:
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss zzz"];
NSDate *pubDate = [dateFormatter dateFromString: @"Wed, 13 May 2009 05:36:20 MDT"];
But, according to the documentation mentioned in the link "http://unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns" the time zone format zzz is used for PDT.
Which format should I use for MDT time zone?
Could someone help me?
Thanks in advance.
Regards, Deepa