code: public static java.sql.Date getSQLDateParameter (
          HttpServletRequest req, String name, String invalidDataMessage)
          throws DataValidationException
      {
          Date when = getDateParameter(req, name, invalidDataMessage);
          return (when == null) ? null : new java.sql.Date(when.getTime());
      }
docs: Similar to {@link #getDateParameter} but returns a SQL date.