A newer version of this page is available. Switch to the current version.

ASPxDateEdit.EditFormatString Property

Gets or sets the pattern used to format the editor's edited value displayed within the edit box, when the ASPxDateEdit.EditFormat propety is set to EditFormat.Custom.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public string EditFormatString { get; set; }
Public Property EditFormatString As String

Property Value

Type Default Description


A string representing the format pattern.


This property is a wrapper of the DateEditProperties.EditFormatString property.


This example demonstrates how the edited value can be formatted within the ASPxDateEdit control.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="DevExpress.Web.v8.3, Version=, Culture=neutral, 
PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

<script runat="server">

 <html xmlns="" >
 <head id="Head1" runat="server">
     <title>Edited Value Formatting</title>
     <form id="form1" runat="server">
         <table border="0" cellpadding="0" cellspacing="20"><tr>
             <td>EditFormat=Custom, EditFormatString=f</td>
                 <dxe:ASPxDateEdit ID="ASPxDateEdit1" runat="server" Date="09/04/2007 17:37:25">
                 <dxe:ASPxDateEdit ID="ASPxDateEdit2" runat="server" EditFormat="DateTime" 
                  Date="09/04/2007 17:37:29">
                 <dxe:ASPxDateEdit ID="ASPxDateEdit3" runat="server" EditFormat="Custom" 
                  EditFormatString="f" Date="09/04/2007 17:37:33">
See Also