|
Wt
3.3.0
|
A form field for conveniently editing a date using a calendar popup. More...
#include <Wt/Ext/DateField>

Public Member Functions | |
| DateField (WContainerWidget *parent=0) | |
| Create a new date field. | |
| void | setFormat (const WString &format) |
| Set the date format. | |
| const WString & | format () const |
| Return the date format. | |
| void | setDate (const WDate &date) |
| Set the date value. | |
| WDate | date () const |
| Return the date value. | |
A form field for conveniently editing a date using a calendar popup.
You can set a WDateValidator to specify in more detail the valid range, and the client-side validation messages. When using a WDateValidator, however, make sure to use the same date format as the format used by the field.
Here is a snapshot taken on 01/09/2007 (shown as today), and with current value 12/09/2007 currently selected.
| WDate Wt::Ext::DateField::date | ( | ) | const |
Return the date value.
When the date could not be parsed, an invalid date is returned (for which WDate::isValid() returns false).
| const WString& Wt::Ext::DateField::format | ( | ) | const |
Return the date format.
1.7.5.1