Skip to main content

kendoDateTimePicker

Namespace: Wisej.Web.Ext.Kendo

Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)

The DateTimePicker allows the user to select a value from a calendar, a time drop-down list, or through direct input.

public class kendoDateTimePicker : kendoBase

Constructors​

Instance member kendoDateTimePicker()​

Constructs a new instance of the kendoDateTimePicker class.

Example:

The following example creates a date and time picker, sets its value and changes the display format through the Options property.

var picker = new kendoDateTimePicker();
picker.Value = new DateTime(2025, 6, 15, 14, 30, 0);
picker.Options.format = "yyyy-MM-dd HH:mm";
picker.Width = 250;
this.Controls.Add(picker);

Instance member kendoDateTimePicker(options)​

Constructs a new instance of the kendoDateTimePicker class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a date and time picker that lists the times in steps of 15 minutes.

var picker = new kendoDateTimePicker(new
{
interval = 15,
timeFormat = "HH:mm",
format = "dd/MM/yyyy HH:mm",
min = new DateTime(2025, 1, 1)
});
picker.Width = 250;
this.Controls.Add(picker);

Properties​

Instance member Text​

String: Not relevant for this class. (Default: "")

Instance member Value​

DateTime: Gets or sets the value of the kendoDatePicker.

Implements​