Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing of Dates

Status
Not open for further replies.

Elton1984

Programmer
Mar 8, 2004
16
Hey all,
i would like to noe if that's anyway for mi to validate 2 days to make sure that the end date is not earlier than the start date, and if the dates are not in the right format an error msg would be displayed in the same page instead of submitting to another page..

Thanx all in advance
Elton
 
Date one = ...
Date two = ...

System.err.println(one.before(two));
System.err.println(one.after(two));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top