package com.bruce;import java.util.Date;public class Test { public static void main(String[] args) {
Date now=new Date();//获取当前时间System.out.println("今天是星期:"+now.getDay());Date start=new Date(now.getYear(),now.getMonth(),now.getDate()-now.getDay());Date end=new Date(now.getYear(),now.getMonth(),now....
这个问题这样解决:1.以当天为例GregorianCalendar calendar = new GregorianCalendar();System.out.println(calendar.get(Calendar.DAY_OF_MONTH));//告诉你今天是这个月的第几天System.out.println(calendar.get(...