I’ve read a many things about parsing date in obj-c, but I can’t find anything dealing with dates like “Mon, 25 Apr 2011 11:53 am CDT”… I’d like to convert it to NSDate in a smart way but I’m running out of ideas.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
-[NSDateFormatter dateFromString:]You’d probably use
@"EEE, d MMM yyyy hh:mm a zzz"as your date format string.And by the way, googling “convert string to date objective-c” yields thousands of hits that have correct answers.