---
id: "P:cAlgo.API.DateTimePicker.MinValue"
kind: "property"
type: "T:cAlgo.API.DateTimePicker"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/DateTimePicker/MinValue/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# DateTimePicker.MinValue

Member of [DateTimePicker](https://help.ctrader.com/ctrader-algo/references/Controls/DateTimePicker/index.md).

## MinValue

Gets or sets minimum value.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public DateTime MinValue {get; set;}
```

Python:

```python
dateTimePicker.MinValue: DateTime
```

### Returns

`DateTime` — 

Available since cAlgo.API 5.5.

### Examples

C#:

```csharp
var dateTimePicker = new DateTimePicker { Value = Server.Time, MinValue = Bars.OpenTimes[0] };
Chart.AddControl(dateTimePicker);
Print("Earliest allowed date: {0}", dateTimePicker.MinValue);
```

Python:

```python
dateTimePicker = DateTimePicker()
dateTimePicker.Value = api.Server.Time
dateTimePicker.MinValue = api.Bars.OpenTimes[0]
api.Chart.AddControl(dateTimePicker)
api.Print(f"Earliest allowed date: {dateTimePicker.MinValue}")
```

