Skip to main content

TimeEditProperties.EditFormatString Property

Gets or sets the pattern used to format the editor’s edited value displayed within the edit box.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll


public string EditFormatString { get; set; }

Property Value

Type Default Description
String String.Empty

A string representing the format pattern.


Use the EditFormatString property to specify the format pattern that will be applied to the time editor’s edited value, displayed within the editor’s edit box. Typically, the EditFormatString property is used when the TimeEditProperties.EditFormat property is set to EditFormat.Custom.


Display values can be formatted using the standard formatting mechanism. It allows you to format values using standard format patterns. Format specifiers for composing the format pattern are described in the Numeric Format Strings and Date and Time Format Strings topics.


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


The example below demonstrates how you can customize the time section to allow end-users to specify time with seconds. For this purpose, the following properties are specified.

The image below shows the result.


<dx:ASPxDateEdit ID="ASPxDateEdit1" runat="server">
     <TimeSectionProperties ShowSecondHand="True" Visible="True">
          <TimeEditProperties EditFormatString="T">
               <Paddings PaddingLeft="20px" PaddingRight="20px" />
See Also