LittleRedHat
Instructor
I'm at the planning stage for writing a Java application. I have a super class that along with other information includes an expiry date. At some stage I will need to check this against an input date, which will need to be the current date. I have been reading up on dateFormat and Calendar, but am struggling to see how to apply the concepts and would be very appreciative of guidance.
What type should the expiry date variable be? I currently have it as a string.
Can I and how do I have the application automatically apply the current date?
How do I then check the the current date against the expiry date so that if the expiry date has passed I can include an error message?
Hoping all this isn't too much to ask.
WTA
LRH
What type should the expiry date variable be? I currently have it as a string.
Can I and how do I have the application automatically apply the current date?
How do I then check the the current date against the expiry date so that if the expiry date has passed I can include an error message?
Hoping all this isn't too much to ask.
WTA
LRH