Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Finding the number of days between two dates

807601Jun 28 2008 — edited Feb 10 2009
Hello all,
I am a Grade 10 student and I have a dilemma with one of my assignments so I thought I would ask it on this forums. My problem is that I am supposed to ask the user to enter any date in this format as a string dd/mm/yyyy and then find the number of days between that day and the present day. In school we have only done the beginning stuff like loops,arrays,String functions (only a few) and Math functions(few) and I have no idea how to do this. can someone please help me out?
PS - Please do not think I am lazy, I have searched all over the net...they show some java.util thing about which I have no clue and we have not done it either, so please help me out .Also my teacher has gone away on holiday and anyway she had refused to help earlier too, so {color:#ff0000}*please help*{color}....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2009
Added on Jun 28 2008
33 comments
1,279 views