-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
6
-
x86
-
windows_xp
FULL PRODUCT VERSION :
1.6.0_02-b06
A DESCRIPTION OF THE PROBLEM :
The DateFormat returned by DateFormat.getInstance(DateFormat.FULL, Locale.FRENCH) is wrong.
For the first of the month, it should show "1er".
ex. : 1er janvier 2008
---------- BEGIN SOURCE ----------
import java.text.DateFormat;
import java.util.GregorianCalendar;
import java.util.Locale;
public class First {
public static void main(String[] args) {
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRENCH);
GregorianCalendar premier = new GregorianCalendar(2007,0,1);
System.out.println(dateFormat.format(premier.getTime()));
}
}
---------- END SOURCE ----------
REPRODUCIBILITY :
This bug can be reproduced always.
1.6.0_02-b06
A DESCRIPTION OF THE PROBLEM :
The DateFormat returned by DateFormat.getInstance(DateFormat.FULL, Locale.FRENCH) is wrong.
For the first of the month, it should show "1er".
ex. : 1er janvier 2008
---------- BEGIN SOURCE ----------
import java.text.DateFormat;
import java.util.GregorianCalendar;
import java.util.Locale;
public class First {
public static void main(String[] args) {
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRENCH);
GregorianCalendar premier = new GregorianCalendar(2007,0,1);
System.out.println(dateFormat.format(premier.getTime()));
}
}
---------- END SOURCE ----------
REPRODUCIBILITY :
This bug can be reproduced always.
- relates to
-
JDK-4207993 RFE: Date formatting should support embedded forms of month names
-
- Closed
-
-
JDK-5077787 [Fmt-Da] RFE: SimpleDateFormat should support "st", "nd", "rd", etc suffixes for days
-
- Closed
-