Big
Dmeans
day-of-year. You have to use small
d.
So in your case use
"yyyyMMdd".
You can check all patterns
here.
This particular pattern is built into Java 8 and later:
DateTimeFormatter.BASIC_ISO_DATE

Big
Dmeans
day-of-year. You have to use small
d.
So in your case use
"yyyyMMdd".
You can check all patterns
here.
This particular pattern is built into Java 8 and later:
DateTimeFormatter.BASIC_ISO_DATE