Formatting Dates specific to Locale
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nelak_m
Posted On:   Thursday, May 23, 2002 01:15 PM

Hi, I have been trying to find a way to print Dates specific to Locale. I am using the code. DateFormat df = DateFormat.getInstance(DateFormat.SHORT,locale); df.format(date); Can we specify another style other than SHORT MEDIUM FULL. Can we format a date with 4digit year 2digit month 2digit day For ex: For US it should display 10/23/2002 and for UK 23/10/2002 Please help me . thanks, Nelak    More>>

Hi,


I have been trying to find a way to print Dates specific
to Locale.

I am using the code.

DateFormat df = DateFormat.getInstance(DateFormat.SHORT,locale);

df.format(date);

Can we specify another style other than

SHORT MEDIUM FULL.

Can we format a date with
4digit year

2digit month

2digit day


For ex:

For US it should display 10/23/2002

and for UK 23/10/2002



Please help me .

thanks,

Nelak

   <<Less
About | Sitemap | Contact