I don't think you can do that with Validator.  You may have to manipulate
the form of the date and test it against Calendar.getInstance().

Mark

-----Original Message-----
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 2:56 PM
To: 'Struts Users Mailing List'
Subject: date validation


Is there a way to validate a date against today's date?

I can validate that a date is entered in a desired format but I'm not sure
how to validate that it is = to or > then today's date using just the
validation.xml.

Do I have to use a custom validator?
Thanks,
-Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to