Skip to main content
All docs
V25.1
  • ASPxRichEditFieldsSettings.DefaultDateFormat Property

    Specifies the format parameter for a newly created DATE field.

    Namespace: DevExpress.Web.ASPxRichEdit

    Assembly: DevExpress.Web.ASPxRichEdit.v25.1.dll

    NuGet Package: DevExpress.Web.Office

    Declaration

    [DefaultValue("")]
    public string DefaultDateFormat { get; set; }

    Property Value

    Type Default Description
    String String.Empty

    The date format.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to DefaultDateFormat
    ASPxRichEditSettings
    .Fields .DefaultDateFormat

    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.

    <dx:ASPxRichEdit ID="DemoRichEdit" runat="server" Width="100%" Height="700px">
        <Settings>
            <Fields DefaultDateFormat="dddd, MMMM dd, yyyy" DefaultTimeFormat="'Current time is ' h:mm am/pm" />
        </Settings>
    </dx:ASPxRichEdit>
    
    See Also