DS Server

Javascript: TXTextControl.DateField.format Property

Property|Introduced in 25.0

Description

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

Syntax

<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.

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