E
Eric
I am using JBuilder 2005 with Tomcat 5 to develop JSPs. Inside my JSP I
have the following code:
int monthA = Calendar.getInstance().MONTH;
int monthB = new Date().getMonth();
monthA is getting the value of 2 (incorrect, it is not March)
monthB is getting the value of 10 (correct, it is November)
My system clock is correct (WinXPsp2)
Any ideas why the Calendar class is reporting the incorrect month?
Thanks in advance.
-Eric
have the following code:
int monthA = Calendar.getInstance().MONTH;
int monthB = new Date().getMonth();
monthA is getting the value of 2 (incorrect, it is not March)
monthB is getting the value of 10 (correct, it is November)
My system clock is correct (WinXPsp2)
Any ideas why the Calendar class is reporting the incorrect month?
Thanks in advance.
-Eric