LocalDate 비교 (오늘이 1일이라면, 오늘이 말일이라면) 😊
·
개발중/Java
// 오늘이 1일이라면 1 추가 if( LocalDate.now().isEqual( LocalDate.now().with(TemporalAdjusters.firstDayOfMonth())) ) { alscSendDateTypeList.add("1"); } // 오늘이 말일이라면 3 추가 if( LocalDate.now().isEqual( LocalDate.now().with(TemporalAdjusters.lastDayOfMonth())) ) { alscSendDateTypeList.add("3"); }