R
RameshOracle
Hi All,
I need to print a date in Norwegian format. I am using
DateFormat.format() method to print the date. But it prints something
like "29. november 2007". One can notice that its not showing the Day
name like (Monday).
Do you have any ideas.. It seems to work for other locales correctly.
I have tried with JDK1.4/1.5 too.
Below is the code snippet:
loc = new Locale("de","DEU");
Locale.setDefault(loc);
Calendar cal = Calendar.getInstance();
cal.set(2007, 10, 29);
DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, l);
System.out.println("Default locale "+Locale.getDefault());
System.out.println("Date formatted "+df.format(cal.getTime()));
It displays: 29. november 2007
Regards
Ramesh
I need to print a date in Norwegian format. I am using
DateFormat.format() method to print the date. But it prints something
like "29. november 2007". One can notice that its not showing the Day
name like (Monday).
Do you have any ideas.. It seems to work for other locales correctly.
I have tried with JDK1.4/1.5 too.
Below is the code snippet:
loc = new Locale("de","DEU");
Locale.setDefault(loc);
Calendar cal = Calendar.getInstance();
cal.set(2007, 10, 29);
DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, l);
System.out.println("Default locale "+Locale.getDefault());
System.out.println("Date formatted "+df.format(cal.getTime()));
It displays: 29. november 2007
Regards
Ramesh