자바날짜
-
[JAVA] LocalDate, LocalDateTime 사용법JAVA 2018. 11. 5. 22:50
1234567891011121314151617181920212223242526272829303132333435package test_java; import java.io.IOException;import java.time.LocalDate;import java.time.LocalDateTime;import java.time.Period;import java.time.format.DateTimeFormatter; public class Main { public static void main(String[] args) throws IOException { System.out.println("오늘 날짜 : " + LocalDate.now()); // 2018-11-05 System.out.println("지금..