Class VDate


public final class VDate extends FieldValidator
Validates a date.
  • Constructor Details

  • Method Details

    • validate

      public boolean validate(FormData fd, jakarta.servlet.http.HttpServletRequest req)
      Works with any field that returns a String via it's
      invalid reference
      Field#getValue
      method. The date string can be any valid string that is parseable by the invalid input: '{@link java.text.DateFormat.parse(String)'} method (even if it's not semantically valid). For example, the following parses OK: 02/29/1980
      Specified by:
      validate in class FieldValidator
      Throws:
      ClassCastException - If the field's
      invalid reference
      Field#getValue
      method does not return a String