I have time in NSString like “15:15”
I want to covert this NSString time into 12 hr NSString(i.e “3:15 PM”).
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.
Use
NSDateFormatterto turn the string in aNSDate. Then use the dateformatter again to change theNSDateto a string.Code might contain some errors, written without compiling or testing.