Date and Calendar
Hi,
Can anyone clarify the following scenario. I am using a Date class to see the DAY OF WEEK. With Date class it is returning 2 as it is tuesday. I guess it is correct. since Date has been deprecated in JDK1.3.1, I have to use the Calender class instead of Date class. It is returning 3 for DAY OF WEEK. Why is this difference. I am attaching the code for the reference....
System.out.println(calendar.get(Calendar.DAY_OF_WEEK));
Srinivas

