...

View Full Version : Java Beginner/Date Validation Question



jjsaw5
01-24-2008, 02:20 PM
Hello,

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.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum