DateTimePicker.Value
property · DateTimePicker · cAlgo.API Since 5.5
DesktopCLICloud
Gets or sets 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 Value {get; set;}
dateTimePicker.Value: DateTime
Returns DateTime
Examples
var dateTimePicker = new DateTimePicker { Value = Server.Time.AddHours(1) };
Chart.AddControl(dateTimePicker);
Print("Selected time: {0}", dateTimePicker.Value);
dateTimePicker = DateTimePicker()
dateTimePicker.Value = api.Server.Time.AddHours(1)
api.Chart.AddControl(dateTimePicker)
api.Print(f"Selected time: {dateTimePicker.Value}")