HeaderPane
Main
Hide
Share Link
Print

Value Property, SftDate Object

Defines the selected date, or the first date of a range; Null when there is none.

Syntax

Get

C#object Date = object.Value;
VB.NETDate = object.Value As Object
C++_variant_t Date = object->Value;
_variant_t Date = object->GetValue();
CHRESULT object->get_Value(VARIANT* Date);

Put

C#object object.Value = Date;
VB.NETobject.Value = Date As Object
C++_variant_t object->Value = Date;
void object->PutValue(const _variant_t& Date);
CHRESULT object->put_Value(VARIANT Date);

object

A SftDate object.

Date

Defines the selected date, or the first date of a range; Null when there is none.

Comments

The Value property defines the value of the date field control, a date and time. The part shown and edited depends on the format (Format); a field showing only a date keeps the time of its value and a field showing only a time keeps its date. A new control holds the current date and time, unless DefaultText defines another value. p The value is Null while the field is empty (AllowEmpty) or its check box is cleared (ShowCheckBox). Setting Null empties a field that allows an empty value or clears its check box; a field that allows neither keeps its value and causes an error. In .NET, Null is DBNull.Value; null (Nothing) also empties the field. Setting a date checks the check box. p In range selection mode (SelectionMode), the value is the first date of the range (RangeStart). Setting it also moves the last date if the range has none or it ends earlier. p A date outside the range defined by MinDate and MaxDate causes an error. When the value changes, the control raises the ValueChanged event; ValueValidating is only raised for changes made by the user.

See Also SftDate Object | Object Hierarchy | Values


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.