# DateContentControl Constructor

> Initializes a new instance of the DateContentControl class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **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 Constructor
- **505 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/constructor/llms-full.txt

---

### Description

Initializes a new instance of the DateContentControl class.

### Syntax

#### DateContentControl()

Initializes complete new instance of the DateContentControl class without a connection to an existing ApplicationField.

```csharp
public DateContentControl();
```

```vbnet
Public Sub New()
```

#### DateContentControl(ApplicationField)

Initializes a new instance of the DateContentControl class with a connection to an existing ApplicationField.

```csharp
public DateContentControl(ApplicationField ApplicationField);
```

```vbnet
Public Sub New(ApplicationField As ApplicationField)
```

| Parameter | Description |
|---|---|
| ApplicationField | Specifies the ApplicationField to be adapted. |

### Examples

The following example creates a Date Content Control instance and configures its date format setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Fields.DateContentControl dateContentControl = new();
dateContentControl.DateFormat = "0.00";
```

```vbnet
Dim dateContentControl As New TXTextControl.DocumentServer.Fields.DateContentControl()
dateContentControl.DateFormat = "0.00"
```

---

## Nearby

- **Previous:** [DateContentControl.Calendar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/calendar-property/llms-full.txt)
- **Next:** [DateContentControl.Date Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/date-property/llms-full.txt)
