Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何获取GWT中的月份/工作日名称?_Java_Gwt_Date_Time - Fatal编程技术网

Java 如何获取GWT中的月份/工作日名称?

Java 如何获取GWT中的月份/工作日名称?,java,gwt,date,time,Java,Gwt,Date,Time,如何获取GWT中的月份/工作日名称 我试着这样做,但一定有更好的解决办法(我希望:): 不确定您是要格式化还是只列出月份/天数。可以获得本地化字符串 从DateTimeFormatInfo: //returns a String array with localized names of the months String[] months = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsFull(); //retur

如何获取GWT中的月份/工作日名称

我试着这样做,但一定有更好的解决办法(我希望:):


不确定您是要格式化还是只列出月份/天数。可以获得本地化字符串 从
DateTimeFormatInfo

//returns a String array with localized names of the months
String[] months = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsFull();

//returns a String array with localized names of days of the week
String[] weekdays = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysFull();
//returns a String array with localized names of the months
String[] months = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsFull();

//returns a String array with localized names of days of the week
String[] weekdays = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysFull();