DD is wrong. D is day of year. Sixth day of year is January 6.
You should use dd.
Docs: SimpleDateFormat
1
solved Why is SimpleDateFormat parsing Date with wrong Month and Day? [duplicate]
DD is wrong. D is day of year. Sixth day of year is January 6.
You should use dd.
Docs: SimpleDateFormat
1
solved Why is SimpleDateFormat parsing Date with wrong Month and Day? [duplicate]