Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FieldsSettingsBuilder.DefaultDateFormat(String) Method

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

Namespace: DevExpress.AspNetCore.RichEdit

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

NuGet Package: DevExpress.AspNetCore.RichEdit

#Declaration

C#
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