In my app I am using date picker & show date in textfield,
Date picker given me a date in this format “Mar 1, 2012”
I want that date in “dd/MM/yyyy” format.
how can i do that?
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.
The date picker displays “Mar 1, 2012” but internally it stores the date as a
NSDate, which you can convert to aNSStringby using aNSDateFormatter, specifying the format you want:The reference for the format string is here: http://unicode.org/reports/tr35/tr35-10.html#Date_Format_Patterns