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

DateEditProperties.EditFormat Property

Gets or sets the edit format for a date editor’s value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(EditFormat.Date)]
public EditFormat EditFormat { get; set; }

Property Value

Type Default Description
EditFormat **Date**

A EditFormat enumeration value that specifies the edit format.

Available values:

Name Description
Date

The edited date is represented using a format pattern for a short date value (which is associated with the ‘d’ format character).

DateTime

The edited date is represented using a format pattern for a short date and short time value (which is associated with the ‘g’ format character).

Time

The edited date is represented using a format pattern for a short time value (which is associated with the ‘t’ format character).

Custom

The edited date is represented using a custom format pattern specified via the ASPxDateEdit.EditFormatString (DateEditProperties.EditFormatString) property.

Remarks

Use the EditFormat property to control how a date editor’s edited date-time value is represented within the editor’s edit box. For display and edit purposes, the edited value can be formatted as a date (EditFormat.Date), as a date with time (EditFormat.DateTime) or a custom format can be provided (EditFormat.Custom).

Note

The EditFormat property synchronizes its value with the editor’s ASPxDateEdit.EditFormat property.

See Also