New to Telerik Document ProcessingStart a free 30-day trial

Time Field

Updated on Jun 16, 2026

TimeField is a Field element that inserts the current time in your document.

Field Syntax

The following table shows the syntax of a Time field:

Syntax
{ TIME [@ "Date-Time Picture"] }

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 Time field are:

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

Inserting

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

Example 1 demonstrates how you can insert a Time field.

Example 1: Insert Time Field

C#
	editor.InsertField("TIME \\@ \"h:mm:ss am/pm\"", "«to be updated»");

After updating the field, the result is "5:28:34 PM" (check Updating Fields).

See Also