Skip to main content
A newer version of this page is available. .

FieldsSettingsBuilder.DefaultDateFormat(String) Method

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

Namespace: DevExpress.AspNetCore.RichEdit

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

Declaration

public FieldsSettingsBuilder DefaultDateFormat(
    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 | DATE command to insert the DATE field.

Use the DefaultDateFormat 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