public static String getMonthStart() {
Calendar currentDate = Calendar.getInstance();
currentDate.add(Calendar.MONTH, 0);
currentDate.set(Calendar.DAY_OF_MONTH, 1);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
return dateFormat.format(currentDate.getTime());
}
java 获取本月开始时间
最新推荐文章于 2024-05-03 01:35:28 发布