Hi Guys & Gals
I'm trying to get a servlet working that takes a date time stirng and tries
to get the day-of-the week
Calendar jdate = Calendar.getInstance();
jdate.set(sessionyear,sessionmonth,sessiondate);
System.out.println("day:"+jdate.get(Calendar.DAY_OF_YEAR));
sessionyear, sessionmonth, sessiondate are int
this only ever returns 0 as the day:! does anybody know why?
Calendar.MONTH, calendar.YEAR etc all work ok, is there a better way to get
the
day of the week "Monday" -- "Sunday" ?
this isn't working
Thanks
Alan
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]