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());
Wynik to:
1988
Śr 25 stycznia 00:00:08 IST 1989
Mijam, 25 12 1988
ale dostaję 25 Jan 1989
. Czemu?