New to Telerik Document ProcessingStart a free 30-day trial

Date Field

Updated on Jun 16, 2026

DateField is a Field element that can display a date, a time, or both, depending on the format you specify in a date-time picture switch.

Field Syntax

The syntax of a Date field is as follows:

Syntax
{ DATE [ @ "Date-Time Picture"] [Switches] }

Switches

Switches are a way for the code fragment to specify formatting for the result of the field. More information is available in the Syntax and Switches section of the Fields article.

The possible switches for a Date field are:

SwitchDescription
@ "Date-Time Picture"Specifies a date format if different than the default format.

Inserting

You can insert a Date Field through the RadFlowDocumentEditor's InsertField() method. It accepts code as the first argument and result as the second argument.

Example 1 demonstrates how to insert a date field.

Example 1: Insert date field

C#
editor.InsertField(@"DATE \@ ""dd / MM / yyyy""", "«to be updated»");

After updating the field, the result is "12/03/2021" (check Updating Fields).

See Also