View Single Post
Old 07-26-2004, 08:46 AM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
thanks for the insight. this calendar class is bugging me, i may just use the deprecated functions.

Code:
<%
Calendar c = Calendar.getInstance();
java.util.Date dt = new java.util.Date();

c.setTime(dt);
out.println(String.valueOf(c.MONTH));
%>
This prints 2, but since this month is july, it should print 6. What am I doing wrong?
__________________
Mike
sde is offline   Reply With Quote