# DateContentControl.Date Property

> Gets or sets the date of the content control field.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.Fields > DateContentControl.Date Property
- **312 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/date-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/date-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/date-property/llms-full.txt

---

### Description

Gets or sets the date of the content control field.

### Syntax

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

```vbnet
Public Property [Date] As DateTime
```

### Examples

The following example uses `DateContentControl.Date` to configure date as part of the date content control workflow. The configured value is checked before the workflow continues.

```csharp
dateContentControl.Date = DateTime.Today;
Console.WriteLine($"Date used by Date Content Control: {dateContentControl.Date}");
```

```vbnet
dateContentControl.Date = Date.Today
Console.WriteLine($"Date used by Date Content Control: {dateContentControl.Date}")
```

---

## Nearby

- **Previous:** [DateContentControl Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/constructor/llms-full.txt)
- **Next:** [DateContentControl.DateFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/dateformat-property/llms-full.txt)
