Locale laLocale = new Locale("en");
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
java.util.Date date = format.parse("2011-1-15");
String day = String.format("%td", date);
String month = String.format(laLocale,"%tb",date);
String year = String.format("%ty", date);
System.out.println(day+"th,"+ month+".,"+year);
结果为:15th,Jan.,11
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
java.util.Date date = format.parse("2011-1-15");
String day = String.format("%td", date);
String month = String.format(laLocale,"%tb",date);
String year = String.format("%ty", date);
System.out.println(day+"th,"+ month+".,"+year);
结果为:15th,Jan.,11