This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
See the doc for the set( field, value) method. You can set individual year, month, day, hour, minute, second fields. A major pain. If you have a string date in a known format, you can use the DateFormat class to parse it and create a Date, then setTime on the Calendar. I find the date handling in Java very icky (set TIME indeed!) and always code this stuff with the JDK doc open.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
JiaPei Jen
Ranch Hand
Joined: Nov 19, 2000
Posts: 1309
posted
0
I did not explain my problem better. Sorry. I have a form for users to fill out the text field. I specify the field as of java.util.Calendar type. During testing, I filled out the text field with a date in various ways (for example, 06/27/2003, June 27, 2003, etc.) The computer always gave an error message saying the information I had given was of String type. Therefore, I am wondering what value is of java.util.Calendar type.