-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
1.1
-
generic
-
generic
Even if Local.US is passed to the constructor of "DateFormatSymbols" as a value
of the argument, SimpleDateFormat doesn't generate in English correctly.
import java.text.*;
import java.util.*;
public class seln{
public static void main(String[] args){
Locale locale = Locale.JAPAN;
DateFormatSymbols formatData;
SimpleDateFormat dateFormat;
formatData = new DateFormatSymbols(locale);
dateFormat = new SimpleDateFormat("yyyy.MMMM.dd GGG hh:mm aaa", formatDa
ta);
System.out.println("Default is "+Locale.getDefault().getDisplayName());
System.out.println(dateFormat.format(new Date()));
}
}
of the argument, SimpleDateFormat doesn't generate in English correctly.
import java.text.*;
import java.util.*;
public class seln{
public static void main(String[] args){
Locale locale = Locale.JAPAN;
DateFormatSymbols formatData;
SimpleDateFormat dateFormat;
formatData = new DateFormatSymbols(locale);
dateFormat = new SimpleDateFormat("yyyy.MMMM.dd GGG hh:mm aaa", formatDa
ta);
System.out.println("Default is "+Locale.getDefault().getDisplayName());
System.out.println(dateFormat.format(new Date()));
}
}