DateTime Picker - CustomDateFormat Property

Show the date using a custom format

Member of DateTime Picker (PRIM_DTIM)

Data Type - String

Details

The CustomDateFormat property is used to format the date using the supplied formatting strings.
 
Each portion of the custom definition is evaluated independently and then concatenated to produce the output.

Date Format

Enum ValueDescription
YShort year with suppressed leading zero e.g. 4
YYShort year e.g. 04
YYYLong year e.g. 2004
MShort month with suppressed leading zero e.g. 4
MMShort month e.g. 04
MMMLong month e.g. April
DShort date with suppressed leading zero e.g. 4
DDShort date e.g. 04
DDDAbbreviated date name e.g. Wed
DDDDLong date name e.g. Wednesday

Example

A format of "DDDD, D MMM YYYY" would produce the output "Wednesday, 7 Nov 2012"

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2