# Javascript: TXTextControl.DateField.format Property

> Specifies the format of the field. It must be a standard DateTime format string of the .NET Framework.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.DateField.format Property
- **174 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/format-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/format-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/format-property/llms-full.txt

---

### Description

Specifies the format of the field. It must be a standard DateTime format string of the .NET Framework.

### Syntax

```javascript
<string> TXTextControl.DateField.format
```

### Examples

The following example demonstrates `TXTextControl.DateField.format` in a practical document-editing workflow. It specifies the format of the field. It must be a standard DateTime format string of the .NET Framework.

```javascript
function inspectFormat(dateField) {
    const format = dateField.format;
    console.log("format:", format);
}
```

---

## Nearby

- **Previous:** [TXTextControl.DateField Object](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/llms-full.txt)
- **Next:** [Javascript: TXTextControl.DateField.preserveFormatting Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/preserveformatting-property/llms-full.txt)
