I need to insert a string ‘GMT’ into
"2010-07-13T11:22:33-07:00"
before the last ‘-‘ (it could also be a ‘+’)
the result should be
"2010-07-13T11:22:33GMT-07:00"
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.
Have a look at the NSString and NSMutableString documentation. I believe what you’re looking for is something along the lines of the following (I haven’t tested this code, but judging by the documentation it should work):