SimpleDateFormat sf = new SimpleDateFormat("yyyyMMdd");
Date d = sf.parse("20060501");
Calendar c = Calendar.getInstance();
c.setTime(d);
int day = c.get(Calendar.DAY_OF_WEEK);
----------
1是周日,2是周一......7是周六