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

Combines a date entry and a time entry into one date-time value.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class DateInput.DateTimeEntry : DateInput.DateEntry

Inheritance: objectDateInput.DateEntryDateInput.DateTimeEntry

Inherited Members DateInput.DateEntry.ParentDateInput.DateEntry.Type

Constructors

Creates a combined entry for the specified parser.

C#
public DateTimeEntry(DateInput parent)
Parameters:parentDateInput

The parser associated with the date and time components.

Properties

Gets or sets the date component combined with Time.

C#
public DateInput.DateEntry Date { get; set; }

Gets or sets the time component combined with Date.

C#
public DateInput.DateEntry Time { get; set; }

Methods

Evaluates the date and time entries using a seed based on the current time plus two hours.

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

Ignored; the combined entry creates its own current-time seed.

Returns:

DateTime

The combined date and time.

Overrides: DateInput.DateEntry.Evaluate(DateTime)