Gets or sets the format specifier that will be used to display the date picker's
Value.
'Declaration
<CategoryAttribute("Appearance")>
<DescriptionAttribute("The format specifier that will be used to display the date picker's Value.")>
<TypeConverterAttribute("Xceed.Editors.Design.DateFormatSpecifierConverter,Xceed.Editors.v2.6.Design,Version=2.6.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
<DefaultValueAttribute("")>
<LocalizableAttribute(True)>
Public Property DisplayFormatSpecifier As String
'Usage
Dim instance As WinDatePicker
Dim value As String
instance.DisplayFormatSpecifier = value
value = instance.DisplayFormatSpecifier
[Category("Appearance")]
[Description("The format specifier that will be used to display the date picker's Value.")]
[TypeConverter("Xceed.Editors.Design.DateFormatSpecifierConverter,Xceed.Editors.v2.6.Design,Version=2.6.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
[DefaultValue("")]
[Localizable(true)]
public string DisplayFormatSpecifier {get; set;}
Property Value
A string representing the format specifier that will be used to display the date picker's
Value.
The following examples demonstrate how to set the DisplayFormatSpecifier property.
' Short date
winDatePicker1.DisplayFormatSpecifier = "d"
' Long date
winDatePicker1.DisplayFormatSpecifier = "D"
' Custom format (single quotes will be used as literals )
winDatePicker1.DisplayFormatSpecifier = "'Year' yyyy 'Month' MM 'Day' dd"
// Short date
winDatePicker1.DisplayFormatSpecifier = "d";
// Long date
winDatePicker1.DisplayFormatSpecifier = "D";
// Custom format (single quotes will be used as literals )
winDatePicker1.DisplayFormatSpecifier = "'Year' yyyy 'Month' MM 'Day' dd";
Target Platforms: 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