Skip to content

DateTimeFormat Enumeration

Description

Format style used to display text in the DateTimePicker control.

Members

Member Description
xtpPickerLongDate Long Date Format (for example "Friday, Nov 14, 1972").
xtpPickerShortDate Short Date Format (for example "11/14/72").
xtpPickerTime Time Format (for example "5:31:47 PM").
xtpPickerCustom Custom format.

Remarks

Set the DateTimePicker.Format property to xtpPickerCustom to use the DateTimePicker.CustomFormat property.

The Format property must be set to xtpPickerCustom for the CustomFormat property to affect the formatting of the displayed date and time.

To display only time in a DateTimePicker, set the Format to xtpPickerTime, and the UpDown property to false.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.