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

Represents a sequence of numeric time fields and an optional AM/PM designator.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class DateInput.TimeEntry : DateInput.DateEntry

Inheritance: objectDateInput.DateEntryDateInput.TimeEntry

Inherited Members DateInput.DateEntry.ParentDateInput.DateEntry.Type

Constructors

Creates a time entry from the supplied tokens.

C#
public TimeEntry(List<DateInput.Token> tokens, DateInput parent)
Parameters:tokensList<DateInput.Token>

The ordered hour, minute, second, and optional AM/PM tokens.

parentDateInput

The parser associated with the entry.

Properties

Gets or sets the ordered tokens used to form the time.

C#
public List<DateInput.Token> Tokens { get; set; }

Evaluation may remove an AM/PM token and split a compact numeric token in this list.

Methods

Applies the parsed time to the calendar date from date; omitted time fields become zero.

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

The date whose year, month, and day are retained.

Returns:

DateTime

A date-time with the parsed time and zero milliseconds.

Overrides: DateInput.DateEntry.Evaluate(DateTime)