I have a string format date with "dd/MM/yyyy" (pattern Brazil)
But in my code when convert in date, accept a wrong months.
*String str = "01/15/2021";
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
Date dt = df.parse(str);
System.out.println(dt);*
The result is: Tue Mar 01 00:00:00 BRT 2022
How invalidate this ?