Re: [OT] Date Localization

2004-08-19 Thread Jason Lea
iginal Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 12:59 PM To: Struts Users Mailing List Subject: Re: [OT] Date Localization The SimpleDateFormat has a setTimeZone() method (coming from DateFormat). The locale doesn't have timezone information,

RE: [OT] Date Localization

2004-08-19 Thread Viral_Thakkar
Could you please provide the code snippet of this..?? -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 12:59 PM To: Struts Users Mailing List Subject: Re: [OT] Date Localization The SimpleDateFormat has a setTimeZone() method (coming from

Re: [OT] Date Localization

2004-08-19 Thread Shinobu Kawai
Hi Viral, > 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

Re: [OT] Date Localization

2004-08-19 Thread Jason Lea
The SimpleDateFormat has a setTimeZone() method (coming from DateFormat). The locale doesn't have timezone information, locale is about language and countries. Countries may have several different timezones so there is no accurate way to map them to timezones. I normally allow users to pick th