New to Telerik UI for WinForms? Start a free 30-day trial

Represents a parsed date/time component that can be evaluated into a DateTime.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public abstract class DateInput.DateEntry

Inheritance: objectDateInput.DateEntry

Derived Classes: DateInput.DateTimeEntryDateInput.EmptyDateEntryDateInput.NoSeparatorDateEntryDateInput.PairEntryDateInput.SingleEntryDateInput.TimeEntryDateInput.TripletEntry...

Constructors

Creates an entry with its kind and parser context.

C#
public DateEntry(DateInput.DateEntryType type, DateInput parent)
Parameters:typeDateInput.DateEntryType

The kind of parsed entry.

parentDateInput

The parser configuration used to interpret it.

Properties

Gets or sets the parser configuration used to interpret this entry.

C#
public DateInput Parent { get; set; }

Gets or sets the entry kind represented by this node.

C#
public DateInput.DateEntryType Type { get; set; }

Methods

Evaluates this entry using a starting date for components that are not supplied in the input.

C#
public abstract DateTime Evaluate(DateTime date)
Parameters:dateDateTime

The starting date used by entries that inherit omitted components.

Returns:

DateTime

The resulting date-time value.

DateInput.DateTimeEntry uses its own current-time seed when evaluating combined input.