Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LocalDate localDate = LocalDate.parse("2022-03-11");
- String converted = DateTimeFormatter.ofPattern("yyyy-MM-dd").format(localDate); // 2022-03-11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement