View Full Version : Java Beginner/Date Validation Question

01-24-2008, 03:20 PM

I am very new to Java, and have a VERY limited knowledge of the language. I am trying to use a date validation function on two fields fromDate and toDate.

I have found the Date Validation function that i would like to use, and I was told that i need to create an If statement to call the function to check the dates in the two fields. Then if one of the dates are not valid then i need to throw them to our error page telling them that they entered an invalid date. And if the dates are correct i assume that i do nothing.

Could someone please help me develop this?

if (!Validator.isValid(fromDate) || !Validator.isValid(toDate)) {

//do something


I apologize in advance for my lack of knowledge but i'm trying to learn this and i need some help.

01-24-2008, 04:04 PM
Opps....never mind i figured it out.