Skip to main content

FieldsSettingsBuilder.DefaultDateFormat(String) Method

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

Namespace: DevExpress.AspNetCore.RichEdit

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

NuGet Package: DevExpress.AspNetCore.RichEdit

Declaration

public FieldsSettingsBuilder DefaultDateFormat(
    string value
)

Parameters

Name Type Description
value String

The date 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