hi monika, i hate that i cannot help you more, but that is part of the Cattle Drive. we are not supposed to post any code related to the assignments here. you might have better luck asking this question in the Cattle Drive Forum... however, i can tell you that my solution for that program uses BOTH GDate and JDate. you will not need to convert GDate to a string. try looking at the javaranchcommon API again to see what the GDate and JDate classes will do for you. hope this helps!
Yes, I have looked at this page before. Can we talk about certain methods? I still don't get it how to use those methods. It must be pretty simple. Thanks anyway, Moni [This message has been edited by Monika Balogh (edited September 25, 2001).]
toString() Instantiate a GDate object Call toString() on the object What you have written is correct if gDate is a GDate object. If you call toString on a GDate object you will see a date formatted like "2000/7/24". (per the javadoc noted above)
getLongFormat() Instantiate a GDate object Call getLongFormat() on the object What you have written is correct if gDate is a GDate object. if you call getLongFormat() on a GDate object, you will see a date formatted like "September 22, 1999". (again per the javadoc).
Does this answer your question? Can you be a little more specific about what you don't understand?
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt