I have date in string in this formate “Tue, 23 Oct 2012 01:05:00 +0000”. Now i want to convert date format to “TUE OCT 23 2012 1:05AM“. What is the best way to do this?
Share
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.
But First
NSDateFormatterto convert the date string to aNSDateobject.
NSDateFormatter(or change the format string of thefirst) to convert the
NSDateback to a string.Will this be a bit helpful ???
EDIT