我尝试了下面的代码,但它给了我两天前星期几的名称。
DatePicker picker;
int date = picker.DayOfMonth;
int month = (picker.Month + 1);//month is 0 based
int year = picker.Year;
SimpleDateFormat simpledateformat = new SimpleDateFormat("EEE");
Date dt = new Date(year, month, date);
Run Code Online (Sandbox Code Playgroud)