728x90 LocalDate1 [JAVA] 시간 함수(년월일시) YearMonthYearMonth yearMonth = YearMonth.from(LocalDate.now());yearMonth.atDay(1); // 2024-08-01YearMonth date = YearMonth.of(2024, 8); // 2024-08date.getYear(); // 2024date.getMonth(); // Augustdate.getMonthValue()); // 8date.atEndOfMonth(); // 2024-08-31date.lengthOfMonth(); // 31date.plusMonths(1); // 2024-09date.minusMonths(1); // .. 2024. 8. 19. 이전 1 다음 728x90