int day = Integer.parseInt(request.getParameter("day")); // 25
int month = Integer.parseInt(request.getParameter("month")); // 12
int year = Integer.parseInt(request.getParameter("year")); // 1988
System.out.println(year);
Calendar c = Calendar.getInstance();
c.set(year, month, day, 0, 0);
b.setDob(c.getTime());
System.out.println(b.getDob());
Outputnya adalah:
1988
Rabu 25 Jan 00:00:08 IST 1989
Saya lewat 25 12 1988
tapi saya mengerti 25 Jan 1989
. Mengapa?