IWebDateTimePicker.Value

Syntax

Value: DateTime;

Description

The Value property determines the value displayed in the component.

Comments

The value should be in the range [MinValue, MaxValue].

Example

Executing the example requires that the repository contains a web form and the DateTimePicker component named DateTimePicker1 on the form. The specified procedure is set as a handler of the OnShow event for the web form.

Sub TESTWebFormOnShow;
Var
    DTValue: DateTime;
Begin
    DTValue := DateTime.Now;
    DateTimePicker1.MaxValue := DateTime.AddYears(DTValue, 5);
    DateTimePicker1.MinValue := DateTime.AddYears(DTValue, -5);
    DateTimePicker1.Value := DTValue;
End Sub TESTWebFormOnShow;

When the web form is started, the DateTimePicker1 component displays the minimum and the maximum allowed dates and the current date is specified as a value.

See also:

IWebDateTimePicker