LocalDate 今天是一年中的第几天?

package com.feimao.test;

import java.time.LocalDate;

public class test {
    public static void main(String[] args) {
        LocalDate localDate = LocalDate.now();
        System.out.println(localDate.getYear()+":"+localDate.getDayOfYear()+":"+localDate.getMonth());
    }
}

 

 

posted @ 2020-09-05 15:13  肥猫与猪宝宝  阅读(547)  评论(0编辑  收藏  举报