[Solved] simple date format giving wrong month [duplicate]

[ad_1]

Change the first format to

SimpleDateFormat tempFormat = new SimpleDateFormat("yyyy-MM-dd");

as DD is the day in the year. 22 is definitely in January

0

[ad_2]

solved simple date format giving wrong month [duplicate]