Default/System Date Format Pattern?
How to get system default date format which is defined in Regional Setting of Control Panel.
We can get an instance of DateFromat using DateFormat.getDateInstance(DateFormat.SHORT) but problem is that there is no toPattern() exist in class DateFormat.
However toPattern() exist in class SimpleDateFormat but there is no costructor like SimpleDateFormat(DateFormat)
So please advise me, how can I get system short date format pattern?
I want that my formatted text fied automatically parse "1.05.08" as "01.05.2008" And "27.3.93" should be parse as "27.03.1993" i.e. 2-digit year should be parse from 1970 to 2069
I have found solution in Sun JAVA-Docs but It's not working so please proper guide me.
See the attachment...