方法1: /** * 判断当前日期是星期几<br> * <br> * @param pTime 修要判断的时间<br> * @return dayForWeek 判断结果<br> * @Exception 发生异常<br> */ public static int dayForWeek(String pTime) throws Exception { format = new SimpleDateFormat("yyyy-MM-dd" ); Calendar c