This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You could try the "complete ()" method before using the values. From the api docco:
protected void complete(); Fills in any unset fields in the calendar fields. First, the computeTime() method is called if the time value (millisecond offset from the Epoch) has not been calculated from calendar field values. Then, the computeFields() method is called to calculate all calendar field values.
[ March 12, 2004: Message edited by: Eddie Vanda ]
The nice thing about Standards is that there are so many to choose from!