# DateContentControl.DateFormat Property

> Gets or sets the date format 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.DateFormat Property
- **410 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/dateformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/dateformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/datecontentcontrol/dateformat-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public string DateFormat { get; set; }
```

```vbnet
Public Property DateFormat As String
```

### Examples

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

```csharp
dateContentControl.DateFormat = "0.00";
if (!string.IsNullOrWhiteSpace(dateContentControl.DateFormat))
{
    Console.WriteLine($"Date Format: {dateContentControl.DateFormat}");
}
```

```vbnet
dateContentControl.DateFormat = "0.00"
If Not String.IsNullOrWhiteSpace(dateContentControl.DateFormat) Then
    Console.WriteLine($"Date Format: {dateContentControl.DateFormat}")
End If
```

---

## Nearby

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