Preset DTP Display Formats

By default, a DTP control can display time information fields in three preset formats or according to a custom format string. Window styles used by the preset formats — which are format strings — are described in the following table.

Style Description
DTS_LONGDATEFORMAT The control displays the date in long format. The default format string for this style is defined by LOCALE_SLONGDATEFORMAT, which produces output like "Friday, April 19, 1996."
DTS_SHORTDATEFORMAT The control displays the date in short format, the default style setting. The default format string for this style is defined by LOCALE_SSHORTDATE, which produces output like "4/19/96."
DTS_TIMEFORMAT The control displays the time. The default format string for this style is defined by LOCALE_STIMEFORMAT, which produces output like "5:31:42 PM." An up-down control is placed to the right of the DTP control to modify time values.