find out some more method which also help in you objective !
Gets the time zone.
the time zone associated with the calendar of DateFormat.
Gets the current value of the default locale for this instance of the Java Virtual Machine.
I tried the above help.Could not find out the desired result.
I will repeat my problem:
I am creating a desktop application which will be used in different contries.So i want to get the current system timezone(i know how to get the timezone).So using this timezone i need to change the date in my application.
For eg:If i am using in US the it should come like mm/dd/yyyy
if i am using it in india the it should come like dd/mm/yy
It the format depands on the timezone selected by the user.
Thanks in Advance.
Although I believe Dariusz Kordonski has given you the right answer. Have you actually tested your application in different countries to see if it does what you want? If so, and if it doesn't do what you want, what does it do differently?