Version

DisplayModeFormat Property

Gets sets format of date used for display mode when control does not have input focus.
Syntax
'Declaration
 
Public Overridable Property DisplayModeFormat As String
public virtual string DisplayModeFormat {get; set;}
Remarks

Default value is set to the empty string. If value is empty, then the value of EditModeFormat is used. If value has a length of 1 (single flag-character such as: d, f, g, s, etc.), then the System.Threading.Thread.CurrentThread.CurrentCulture is used to obtain date pattern. Otherwise, this property is treated as explicit date pattern.

Example of an explicit pattern: "dd-MM-yyyy" To learn about format flags and patterns, see documentation for the System.Globalization.DateTimeFormatInfo class.

Note The "z" and "g" characters and "%c" style in pattern are ignored.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also