Just set parsedDate equal to your formatted text string, like so:

parsedDate = text;

A LocalDate object can only ever be printed in ISO8601 format (yyyy-MM-dd). In order to print the object in some other format, you need to format it and save the LocalDate as a string like you've demonstrated in your own example

DateTimeFormatter formatter = DateTimeFormatter
        .ofPattern("d/MM/uuuu")
        .localizedBy(myLocale); // In Java 15+, this localizes the digits; you can comment it
String text = myDate.format(formatter);
Answer from Rebecca Close on Stack Overflow
🌐
TutorialsPoint
tutorialspoint.com › javatime › javatime_localdate_format.htm
java.time.LocalDate.format() Method Example
package com.tutorialspoint; import ... static void main(String[] args) { LocalDate date = LocalDate.parse("2017-02-03"); System.out.println(date); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/YYYY"); System.out.println(f...
🌐
How to do in Java
howtodoinjava.com › home › java date time › how to format localdate in java
How to Format LocalDate in Java - HowToDoInJava
March 3, 2024 - LocalDate today = LocalDate.now(); //1 - Default Format is yyyy-MM-dd String formattedDate = today.toString(); //2022-02-17 //2 - Inbuilt patterns FULL, LONG, MEDIUM, SHORT DateTimeFormatter pattern = DateTimeFormatter.ofLocalizedDate(Forma...
🌐
Medium
medium.com › @AlexanderObregon › javas-localdate-parse-method-explained-d2c2bb7322cb
Java’s LocalDate.parse() Method Explained | Medium
August 31, 2024 - The standard ISO-8601 format cannot handle full month names, so a custom formatter with the pattern dd MMMM yyyy is necessary. This allows LocalDate.parse() to accurately parse and convert the string into a LocalDate object, even with the more ...
🌐
ConcretePage
concretepage.com › java › java-8 › java-localdate-format
Java LocalDate Format
package com.concretepage; import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class LDFormatDemoOne { public static void main(String[] args) { LocalDate localDate = LocalDate.parse("2019-05-08"); String date = localDate.format(DateTimeFormatter.ofPattern("MMM dd, yyyy")); System.out.println(date); //May 08, 2019 date = localDate.format(DateTimeFormatter.ofPattern("yyyy.MM.dd")); System.out.println(date); //2019.05.08 date = localDate.format(DateTimeFormatter.ofPattern("EEE, MMM d, ''yy")); System.out.println(date); //Wed, May 8, '19 date = localDate.format(DateTimeFor
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › time › format › DateTimeFormatter.html
DateTimeFormatter (Java Platform SE 8 )
October 20, 2025 - LocalDate date = LocalDate.now(); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MM dd"); String text = date.format(formatter); LocalDate parsedDate = LocalDate.parse(text, formatter); All letters 'A' to 'Z' and 'a' to 'z' are reserved as pattern letters.
🌐
Java67
java67.com › 2016 › 10 › how-to-parse-string-to-localdate-in-Java8-DateTimeFormatter-Example.html
How to parse String to LocalDate in Java 8 - DateTimeFormatter Example | Java67
import java.time.LocalDate; import ... " + "localdate : " + date); // The ISO date formatter format or parse date in yyyy-MM-dd format // such as '2015-09-27' or '2015-09-27+01:00' // This is also the default format of LocalDate, ...
🌐
ConcretePage
concretepage.com › questions › 876
Format LocalDate to dd/MM/yyyy in Java
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("dd/MM/yyyy"); LocalDate localDate = LocalDate.now(); String date = dtf.format(localDate); System.out.println(date);
🌐
Medium
sopheamak.medium.com › how-to-accept-various-localdate-format-59b649eba851
How to accept various LocalDate Format | by sophea Mak | Medium
December 14, 2022 - How to accept various LocalDate Format As default LocalDate format is YYYY-MM-DD. How can we make it to support other formats such as DD-MM-YYYY, and YYYY/MM/DD or others? In this article, I will …
Find elsewhere
🌐
Benchresources
benchresources.net › home › java › java 8 – how to convert localdate in different formats ?
Java 8 – How to convert LocalDate in different formats ? - BenchResources.Net
September 4, 2022 - package in.bench.resources.java8.localdate.examples; import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class FormatLocalDateExample1 { public static void main(String[] args) { // 1. get current system date LocalDate localDate = LocalDate.now(); System.out.println("Current System Date is :- \n" + localDate); // 2. DateTimeFormatter DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd.MM.yyyy"); // 3.
🌐
Baeldung
baeldung.com › home › java › java dates › guide to datetimeformatter
Guide to DateTimeFormatter | Baeldung
March 26, 2025 - String newYorkDateTimePattern = "dd.MM.yyyy HH:mm z"; DateTimeFormatter newYorkDateFormatter = DateTimeFormatter.ofPattern(newYorkDateTimePattern); LocalDateTime summerDay = LocalDateTime.of(2016, 7, 31, 14, 15); System.out.println(newYorkD...
🌐
iO Flood
ioflood.com › blog › java-localdate
Java LocalDate: From Basics to Advanced Usage
February 29, 2024 - LocalDate is a class in Java used to represent a date in ISO-8601 format (yyyy-MM-dd) and can be called simply with LocalDate date = LocalDate.now().
🌐
LabEx
labex.io › tutorials › java-how-to-format-localdate-to-custom-string-430995
How to format LocalDate to custom string | LabEx
LocalDate date = LocalDate.now(); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy"); String formattedDate = date.format(formatter); System.out.println(formattedDate); // Outputs: 15/06/2023 ·
🌐
GeeksforGeeks
geeksforgeeks.org › java › localdate-format-method-in-java
LocalDate format() method in Java - GeeksforGeeks
November 28, 2018 - // Program to illustrate the format() method // Exception Program import java.util.*; import java.time.*; import java.time.format.DateTimeFormatter; public class GfG { public static void main(String[] args) { try { // Parses the date LocalDate dt = LocalDate.parse("2018-01-32"); System.out.println(dt); // Function call DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/YYYY"); System.out.println(formatter.format(dt)); } catch (Exception e) { System.out.println(e); } } }
🌐
Attacomsian
attacomsian.com › blog › java-format-localdate
How to convert LocalDate to string in Java
October 14, 2022 - // old string format String oldStr = "12/23/2019"; // parse old string to date LocalDate date = LocalDate.parse(oldStr, DateTimeFormatter.ofPattern("MM/dd/yyyy")); // format date to string String newStr = date.format(DateTimeFormatter.ofPattern("MMMM dd, yyyy")); // print both strings System.out.println("Date Format (before): " + oldStr); System.out.println("Date Format (after): " + newStr);
🌐
Quora
quora.com › How-do-you-get-a-yyyy-mm-dd-format-in-Java
How to get a yyyy-mm-dd format in Java - Quora
For example: LocalDate date = LocalDate.now(); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MM dd"); String text = date.format(formatter); LocalDate parsedDate = LocalDate.parse(text, formatter); All letters 'A' to 'Z' and ...
🌐
JavaBeat
javabeat.net › home › how to convert a date to dd/mm/yyyy format in java
How to Convert a Date to dd/MM/yyyy Format in Java
March 20, 2024 - After this, we use the SimpleDateFormat() to specify the desired date pattern (i.e., dd/MM/yyyy). Finally, we use the format() method to format the given date object according to the specified pattern: The output shows the formatted Date on the console: Alternatively, you can use the LocalDate class to get the current Date and the DateTimeFormatter class to convert the date into the “dd/MM/yyyy” format.
🌐
Quora
quora.com › How-do-I-convert-dd-mm-yyyy-format-to-mm-dd-yyyy-in-Java
How to convert dd.mm.yyyy format to mm/dd/yyyy in Java - Quora
Answer (1 of 3): You can; * parse the date in one format and print it in the other. * or assume the input format is correct, sub-string the portions you need and create the string in the new format.