[Solved] Why is SimpleDateFormat parsing Date with wrong Month and Day? [duplicate]

[ad_1]

DD is wrong. D is day of year. Sixth day of year is January 6.

You should use dd.

Docs: SimpleDateFormat

1

[ad_2]

solved Why is SimpleDateFormat parsing Date with wrong Month and Day? [duplicate]