# TextControl.FormFieldDateChanged Event

> Occurs when the date of a DateFormField has been changed. The event handler receives an argument of type DateFormFieldEventArgs containing data related to this event. The event does not occur, when the DateFormField.Date property has been used to change the date.

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

---

### Description

Occurs when the date of a [DateFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/llms-full.txt) has been changed. The event handler receives an argument of type [DateFormFieldEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfieldeventargs/llms-full.txt) containing data related to this event. The event does not occur, when the [DateFormField.Date](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/date-property/llms-full.txt) property has been used to change the date.

### Syntax

```csharp
public event DateFormFieldEventHandler FormFieldDateChanged;
```

```vbnet
Public Event FormFieldDateChanged As DateFormFieldEventHandler
```

### Examples

The following example records useful context when form field date changed occurs.

```csharp
textControl.FormFieldDateChanged += (sender, e) =>
{
    Console.WriteLine($"Form Field Date Changed at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.FormFieldDateChanged,
    Sub(sender, e)
        Console.WriteLine($"Form Field Date Changed at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.FormFieldCheckChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formfieldcheckchanged-event/llms-full.txt)
- **Next:** [TextControl.FormFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formfields-property/llms-full.txt)
