In my Java application, I use an instance of DateFormat to parse date entries.
DateFormat fmt; fmt = DateFormat.getDateInstance(DateFormat.DEFAULT) // dd.MM.yyyy for de_DE
The problem is that the user insists on entering dates in the form 31.12.11 .
Unfortunately, this is being analyzed on 31.12.11 . ( 0011-12-31 in ISO format) Instead, I want the syntax date to be 31.12.2011 ( 2011-12-31 in ISO format).
Can I change the date format to somehow parse the input in this way?
Daniel Rikowski
source share