Skip to content

DateTimePicker.MaxValue

property · DateTimePicker · cAlgo.API Since 5.5

DesktopCLICloud

Gets or sets maximum value.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public DateTime MaxValue {get; set;}
dateTimePicker.MaxValue: DateTime

Returns DateTime

Examples

var dateTimePicker = new DateTimePicker { Value = Server.Time, MaxValue = Server.Time.AddDays(30) };
Chart.AddControl(dateTimePicker);
Print("Latest allowed date: {0}", dateTimePicker.MaxValue);
dateTimePicker = DateTimePicker()
dateTimePicker.Value = api.Server.Time
dateTimePicker.MaxValue = api.Server.Time.AddDays(30)
api.Chart.AddControl(dateTimePicker)
api.Print(f"Latest allowed date: {dateTimePicker.MaxValue}")