Skip to main content
Tab

TimeEditProperties.EditFormat Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

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

Property Value

Type Default Description
EditFormat Time

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 time 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), as a time (EditFormat.Time) or a custom format can be provided (EditFormat.Custom).

Note

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

See Also