Inherits Wt::WValidator.
Inheritance diagram for Wt::WDateValidator:

Public Member Functions | |
| WDateValidator (const WDate &bottom=WDate::NoDate, const WDate &top=WDate::NoDate) | |
| Construct a date validator. | |
| virtual State | validate (WString &input, int &pos) const |
| Evaluate the validness of the given input. | |
Static Public Member Functions | |
| static WDate | parse (const WString &input) |
| Parse a date. | |
This validator only accepts input in the dd/mm/yyyy format, and checks that the date is in the right range.
| Wt::WDateValidator::WDateValidator | ( | const WDate & | bottom = WDate::NoDate, |
|
| const WDate & | top = WDate::NoDate | |||
| ) |
Construct a date validator.
The validator will accept only dates in the indicated range.
Parse a date.
Returns WDate::NoDate when the input is invalid.
| WValidator::State Wt::WDateValidator::validate | ( | WString & | input, | |
| int & | pos | |||
| ) | const [virtual] |
Evaluate the validness of the given input.
This function returns the current state of the input.
The function can change both input and pos (the cursor position) if required.
Reimplemented from Wt::WValidator.
1.4.7