I have a Date stored in GMT format in database. Now I need to display this date to user depending on his/her LOCALE. I found SimpleDateFormat and few other classes to convert the Date Format, but I am not able to find how to change the Date value as per user locale.
Example: Date in database : 19 August 2004 6:30 PM
Date for User from India should be : 19 August 2004 1:00 PM
How to achieve this .???
TIA, Viral
Julian Kennedy
Ranch Hand
Joined: Aug 02, 2004
Posts: 823
posted
0
Take a look at the getInstance() methods in the Calendar class or the constructors of GregorianCalendar. I'm pretty sure you'll find what you want there.
Jules
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.