# DateFormField.SupportedDateFormats Property

> Gets an array of format picture strings which can be used to format the date. The returned format strings depend on the culture set for the date field's text. A TextControl uses Day, Month, Year, and Era Format Picture strings to format a date.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > DateFormField.SupportedDateFormats Property
- **565 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/supporteddateformats-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/supporteddateformats-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/supporteddateformats-property/llms-full.txt

---

### Description

Gets an array of format picture strings which can be used to format the date. The returned format strings depend on the culture set for the date field's text. A TextControl uses Day, Month, Year, and Era Format Picture strings to format a date.

### Syntax

```csharp
public string[] SupportedDateFormats { get; }
```

```vbnet
Public ReadOnly Property SupportedDateFormats As String()
```

### Examples

The following example adds a prefilled delivery-date field to a form by using `DateFormField.SupportedDateFormats`.

```csharp
DateFormField dateFormField = new(DateTime.Today.AddDays(14), 0) { Name = "DeliveryDate" };
textControl.FormFields.Add(dateFormField);

foreach (string text in dateFormField.SupportedDateFormats)
{
    Console.WriteLine(text.Length);
}
```

```vbnet
Dim dateFormField As New DateFormField(Date.Today.AddDays(14), 0) With { .Name = "DeliveryDate" }
textControl.FormFields.Add(dateFormField)

For Each text As String In dateFormField.SupportedDateFormats
    Console.WriteLine(text.Length)
Next
```

---

## Nearby

- **Previous:** [DateFormField.IsDateControlVisible Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/isdatecontrolvisible-property/llms-full.txt)
- **Next:** [DateFormFieldEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfieldeventargs/llms-full.txt)
