Public static void main (String [] args) {
Date date=new Date();
String s1=the String. Format (" % TB ", date);
String s2=the String. Format (" % tB ", date);
Result is in Chinese how to output in English in October
CodePudding user response:
Try format to specify the locale parameterThe String. Format (Locale. The US, "% TB", date);