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 设置表格字体
<style>
        .layui-table-cell {
            height:auto;
            font-size: 15px;
            letter-spacing:2px;
            overflow:visible;
            text-overflow:inherit;
            white-space:normal;
            word-break:break-all
        }
    </style>



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

 

相关推荐
©️2020 CSDN 皮肤主题: 1024 设计师:白松林 返回首页