I need a bad data. And I need that data as Date java type.
String sDate1="29/02/2021";
Date date1=new SimpleDateFormat("dd/MM/yyyy").parse(sDate1,new ParsePosition(0));
As many of you know this does not work it will set 01 MAR as date, because of the Data class checks. Is there any way to trick this checks or avoid them?