Hi I have the following code,
Calendar calendar = Calendar.getInstance();
calendar.set(1996, 4, 24, 0, 0, 0);
System.out.println(calendar.getTime());
calendar.add(Calendar.DAY_OF_YEAR, 1);
System.out.println(calendar.getTime());
this prints
Fri May 24 00:00:00 LKT 1996
Sat May 25 01:00:00 LKT 1996
Why has the hour increased to 1? This doesn't happen for 1995.. :(
Thanks,
Gavin