1. How to find the system locality/zone? 2. How to set the formatter for a particular locality?
Are these two your problems?
Karthick D V
rama krishnan
Ranch Hand
Joined: Mar 14, 2008
Posts: 68
posted
0
yes karthick your correct i want like that only
Karthick Dharani Vidhya
Ranch Hand
Joined: Feb 23, 2008
Posts: 88
posted
0
Hi,
I hope the following would help.
1. TimeZone.getDefault() will give you the TimeZone on the Machine where the code is running. 2. Setting the timeZone for the formatter should format you the date in that TimeZone.