Skip to main content
Tab

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.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
String String.Empty

A string representing the format pattern.

Remarks

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.

Note

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.

Note

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

Example

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.

ASPxDateEdit_ShowSecondHand

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