There set 2019-12-27, but print result is 2020-01-27. Is there mistake in the code?
public void testJavaDate(){
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date checkInDate;
checkInDate = new Calendar.Builder()
.setDate(2019, 12, 27)
.build().getTime();
System.out.println("checkIn sdf: "+sdf.format(checkInDate));
}