I have a table view that displays dates using a NSDateFormatter
to format them using the Full date style (today would be formatted as "Friday, September 24, 2010" or in German "Freitag, 24. September 2010"). But when editing the date the formatter forces the user to type the date in the same format. How can I make the formatter accept dates in different formats on input? Ideally the formatter should use some heuristic to automatically detect the entered format.
I tried setting the lenient
property in code, but this doesn’t change the observed behavior at all.
Lots of programs automatically detect the inputted date format, so this has to be possible. Or are they all using their own implementation?