取得指定日期是星期几可以采用下面两种方式取得日期是星期几:一、使用Calendar类根据日期取得星期几public static String getWeek(Date date){String[] weeks = {"星期日