This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
hi, try java.util.GregorianCalendar's get() method (inherited from Calendar). useful constants for the <code>field</code> paramter to get() can be found in Calendar and GrgorianClandar too. another thing would be to use System.getCurrentTimeMillis (dont know if this is the good name) and calculate it yourself :-)
karl
Kevin_Fon
Greenhorn
Joined: May 21, 2001
Posts: 4
posted
0
I used... Calendar userCalendar = new GregorianCalendar(); userMonth = userCalendar.get(Calendar.MONTH); and userMonth was = 4 Isn't May=5?
"Kevin_Fon", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks.