Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

DatePicker.PickerFormat Property

Specifies the format of the selected dates to display on the picker TextBox.

[Visual Basic]
Public Property PickerFormat As String
[C#]
public String PickerFormat {get; set;}

Remarks

See TitleFormat for a list of supported date related specifiers. In addition to date related specifiers, this property also supports the following time related specifiers:

Specifier Description
h Displays the hour for the specified DateTime in the range 1-12. The hour represents whole hours passed since either midnight (displayed as 12) or noon (also displayed as 12). If this format is used alone, then the same hour before or after noon is indistinguishable. If the hour is a single digit (1-9), it is displayed as a single digit. No rounding occurs when displaying the hour. For example, a DateTime of 5:43 returns 5.
hh Displays the hour for the specified DateTime in the range 1-12. The hour represents whole hours passed since either midnight (displayed as 12) or noon (also displayed as 12). If this format is used alone, then the same hour before or after noon is indistinguishable. If the hour is a single digit (1-9), it is formatted with a preceding 0 (01-09).
H Displays the hour for the specified DateTime in the range 0-23. The hour represents whole hours passed since midnight (displayed as 0). If the hour is a single digit (0-9), it is displayed as a single digit.
HH Displays the hour for the specified DateTime in the range 0-23. The hour represents whole hours passed since midnight (displayed as 0). If the hour is a single digit (0-9), it is formatted with a preceding 0 (01-09).
m Displays the minute for the specified DateTime in the range 0-59. The minute represents whole minutes passed since the last hour. If the minute is a single digit (0-9), it is displayed as a single digit.
mm Displays the minute for the specified DateTime in the range 0-59. The minute represents whole minutes passed since the last hour. If the minute is a single digit (0-9), it is formatted with a preceding 0 (01-09).
s Displays the seconds for the specified DateTime in the range 0-59. The second represents whole seconds passed since the last minute. If the second is a single digit (0-9), it is displayed as a single digit only.
ss Displays the seconds for the specified DateTime in the range 0-59. The second represents whole seconds passed since the last minute. If the second is a single digit (0-9), it is formatted with a preceding 0 (01-09).
tt Displays the A.M./P.M. designator. The A.M./P.M. designator can be customized with AMDesignator and PMDesignator property.

Using time related specifiers in PickerFormat enables users to enter both date and time information with the DatePicker control.

See Also

DatePicker Class | EO.Web Namespace


Direct link to this topic