LocalDate 타입을 패턴 변경하여 문자열로 반환.
DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyyMMdd");
LocalDate nowDate = LocalDate.now();
String nowStr = format.format(nowDate);
[Java] Stream 사용시 toList()와 collect(Collectors.toList())의 차이 점 (0) | 2024.12.17 |
---|