1.获取当前月1日
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMM01");
String currentDate =sdf.format(date);
System.out.println("currentDate:"+currentDate); //输出当前月1日
1.获取当前月1日
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMM01");
String currentDate =sdf.format(date);
System.out.println("currentDate:"+currentDate); //输出当前月1日