LocalDateTime 获取当月的第一天和最后一天的日期

    public static void main(String[] args) {
        DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        LocalDateTime date = LocalDateTime.now();
        LocalDateTime firstday = date.with(TemporalAdjusters.firstDayOfMonth());
        LocalDateTime lastDay = date.with(TemporalAdjusters.lastDayOfMonth());
        System.out.println("firstday:" + firstday.format(fmt));
        System.out.println("lastDay:" + lastDay.format(fmt));
    }
 table 设置表格字体




overflow-x: hidden;
  overflow-y: auto;  修改layui.css

 

你可能感兴趣的:(layui)