FormDateFieldSetFormat

Description

Sets the date format for displaying the date in the date form field.

Applies to

RichTextEdit control

Syntax

rtename.FormDateFieldSetFormat(integer fieldID, string format)

Argument

Description

fieldID

The unique ID assigned to the date field.

format The date format to use for the field.

Return value

Integer.

Returns 1 if it succeeds. Returns -1 if an error occurs. Returns -2 if the fieldID is non-existent, illegal, or not of the required type. If any argument's value is null, returns null.

Examples

This example sets the date format to be "d.MMMM yyyy" in the specified date form field

integer li_formid,li_rtn
string ls_format

ls_format = "d.MMMM yyyy"
li_formid = rte_1.FormDateFieldInsert(2023-07-13,false)
li_rtn = rte_1.FormDateFieldSetFormat(li_formid,ls_format)