import cn.hutool.core.date.DateUtil;
import com.ho.common.tools.constant.CommonConstant;

/**
 * @author fancl
 * @desc:
 * @date 2022/12/7
 */
public class DayTest {
    public static void main(String[] args) {
        String currentStartDay =null;
        String currentEndDay=null;
        String lastMonthStartDay;
        String lastMonthEndDay;
        String lastYearStartDay=null;
        String lastYearEndDay=null;
        String yearStr ="2022";
        String currentDay="2022-11-05";
        //月份所对应的时间对象
        String lastMonthSameDay = DateUtil.format(DateUtil.offsetDay(DateUtil.parse(currentDay), -30), CommonConstant.DATE_YMD);
        System.out.println();

    }
}
