I have a string 2013-01-10T08:24:12.503 which is ‘date’ and ‘time’.This is the format that I receive from my server.
I want to display this in the format 2013-01-10 08:24:12.
How can I do this?
Please help me out.
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.
You need to esacpe the
TstringUsing above format get normal
NSDateAgain set the format you want
Get the
Stringyou want,Check this link, where i got reference.