I am trying to take a variable of Date type . But output I am getting is automatically getting incremented by one month. Here is what I am doing
Date d1 = new Date(2020,8,15);
System.out.println(d1);
d1's value is coming 2020-09-15
instead of 2020-08-15
.