The getDay() method in java.util.Date has been deprecated and Calendar.get(DAY_OF_WEEK) is suggested as replacement. My problem here is that Calendar.get(DAY_OF_WEEK) is not behaving exactly as Date.getDay(). The value returned should be between 0 to 6 (0 for Sunday...). The value returned by Calendar.get(DAY_OF_WEEK) is 2 short of the value returned by Date.getDay(). Sometimes it returns 7 also How do I work around this problem? Thanks for your time, Krupesha
winmail.dat