Skip to main content

FieldsSettingsBuilder.DefaultTimeFormat(String) Method

Specifies the format of the TIME field inserted via the UI.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll

Declaration

public FieldsSettingsBuilder DefaultTimeFormat(
    string value
)

Parameters

Name Type Description
value String

The time format.

Returns

Type Description
FieldsSettingsBuilder

An object that can be used to further configure the fields settings.

Remarks

Users can select the Mail Merge | Create Field | TIME command to insert the TIME field.

Use the DefaultTimeFormat property to specify the default format for the inserted field.

@(Html.DevExpress().RichEdit("richEdit")
    .Fields(fs => fs
        .DefaultDateFormat("dddd, MMMM dd, yyyy")
        .DefaultTimeFormat("'Current time is ' h:mm am/pm"))
)

RichEdit - Default Date and Time Format

See Also