# DateField Class

> The DateField implements the MS Word specific DATEFIELD field. This field must be used in combination with an ApplicationField that should be modified using this adapter.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Inherits:** `TXTextControl.DocumentServer.Fields.FieldAdapter` › `TXTextControl.DocumentServer.Fields.MailMergeFieldAdapter`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DocumentServer.Fields > DateField Class
- **885 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/llms-full.txt

---

### Description

The DateField implements the MS Word specific DATEFIELD field. This field must be used in combination with an [ApplicationField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfield/llms-full.txt) that should be modified using this adapter.

### Syntax

```csharp
public sealed class DateField : MailMergeFieldAdapter
```

```vbnet
Public NotInheritable Class DateField
    Inherits MailMergeFieldAdapter
```

### Examples

The following example creates a Date Field instance and configures its text setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Fields.DateField dateField = new();
dateField.Text = "Quarterly results";
```

```vbnet
Dim dateField As New TXTextControl.DocumentServer.Fields.DateField()
dateField.Text = "Quarterly results"
```

---

## In This Section

- [DateField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/constructor/llms-full.txt): Initializes a new instance of the DateField class.
- [DateField.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/culture-property/llms-full.txt): Specifies a CultureInfo instance that supplies culture-specific formatting information which is used when applying the formatting string to the field content. The default value for this property is the current thread culture.
- [DateField.Date Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/date-property/llms-full.txt): Sets the date of the field.
- [DateField.Format Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/format-property/llms-full.txt): Gets and sets the format of the field. It must be a standard DateTime format string of the .NET Framework.
- [DateField.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/datefield/text-property/llms-full.txt): Gets and sets the displayed text of the field.

---

## Nearby

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