• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OOP-1 DaysOld

 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was reading through some of the earlier post, and one guy stated taht using Calendar and Date classes would make this easy, but the responses were that you shouldn't so that you can focus on learning what the assignment is supposed to be teaching.
Just for clarification, you have to at some point create a Date object for the current date, correct? I have yet to figure out how to convert that information into a way that can be used by JDate or GDate, but I want to make sure I am at least on the right path with it.
Thanks!
Jason
 
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For this assignment you only use Gdate & Jdate.
Good luck
 
jason adam
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ugh, I've been pouring over those two classes and can't see how you would get the current date based off of the input that is given at the command line... Time to go take my advil and look over everything some more.
 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at their constructors.
Gee, I hope this helps.
 
Johannes de Jong
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the format the date being input is in & compare that to the methods of Gdate & Jdate.
 
jason adam
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nevermind, I just saw a certain little method that does exactly what I am looking for... I always hated middle school.
I even got the darn thing to work!! Now to go back and see where I can optimize.
Thanks for the help y'all!
Jason
[This message has been edited by jason adam (edited June 19, 2001).]
[This message has been edited by jason adam (edited June 19, 2001).]
[This message has been edited by jason adam (edited June 19, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic