Java8 求本月的天数

public class DateDemo {
    public static void main(String[] args) {
        LocalDate today = LocalDate.now();
        //本月多少天
        int days = today.lengthOfMonth();
        System.out.println("days="+days);
    }
}
    原文作者:红土豆_jie
    原文地址: https://blog.csdn.net/u010031939/article/details/53908499
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞