Date time field - CustomDateFormat Property

Show the date using a custom format

Member of Date time field (PRIM_MD.DateTime)

Data Type - String


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


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

See also

All Component Classes

Technical Reference

V14 SP2 - November 2017