F
foo
Hi all:
What's the best way to validate whether a date
entered by a user (say in a html form) is
valid or not ?
Suppose, in my java code I get:
02/15/2004 [dd/mm/yyyy]
This is valid
However, if 2004 is a leap year, then the following
will not be valid:
02/29/2004
java.text.Dateformat.parse(..) parses both dates
fine. I need to reject the second date.
Best regards,
--foo
What's the best way to validate whether a date
entered by a user (say in a html form) is
valid or not ?
Suppose, in my java code I get:
02/15/2004 [dd/mm/yyyy]
This is valid
However, if 2004 is a leap year, then the following
will not be valid:
02/29/2004
java.text.Dateformat.parse(..) parses both dates
fine. I need to reject the second date.
Best regards,
--foo