I have a 24h formatted time string like 13:30 which I must translate into a 12h time format string when the user’s locale uses AM/PM. How can I detect that reliably?
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.
There’s a few methods. See my question here Detect iPhone 24-Hour time setting
Basically you set a time and check the string for am or pm