# Javascript: TXTextControl.DateField.preserveFormatting Property

> Specifies whether the field's formatting should be preserved.

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

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/preserveformatting-property/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/preserveformatting-property/#syntax)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/preserveformatting-property/#examples)

---

## Nearby

- **Previous:** [Javascript: TXTextControl.DateField.format Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-datefield/format-property/llms.txt)
- **Next:** [Javascript: TXTextControl.DialogBoxKind Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/dialogboxkind-enumeration/llms.txt)
