I have a NSString that is a date and time in this code: “YYYY-MM-DD HH:mm:SS” and I want to habe it like german style: “DD.MM.YYY HH:mm:DD”
How to solve?
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.
Example of converting one date string to another format:
NSString *currentDateString = @”04-08-2012 08:16:00″;
NSLog output:
currentDateString: 04-08-2012 08:16:00
currentDate: 2012-04-01 12:16:00 +0000
convertedDateString: 2012-04-92 08:16:00
germanDateString: 92.04.2012 08:16:92