日期:2014-05-20 浏览次数:20930 次
public class Test {
public static void main(String[] args) throws ParseException {
String str = "20071017";
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
Date date = sdf.parse(str);
sdf = new SimpleDateFormat("E");
System.out.println(str + " " + sdf.format(date));
}
}