The format used to render dates in the time bar.

Usage

Set_Property(OLECtrlEntID, "OLE.DateHeaderFormat", Format)

Values

Formatted String

Default Value: "MMMM DD, YYYY"

Remarks

The DateHeaderFormat property allows you to customize how dates are drawn in the timer bar header.

This only works for multi-date views.

Here are the date formatting options:

Character(s)Displays
YYYears 00-99
YYYYYears 0001-2999
MMonths 1-12
MMMonths 01-12
MMMMonths Jan-Dec
MMMMMonths January-December
MMMMMMonths J-D
DDays 1-31
DDDays 01-31
DDDDays Sun-Sat
DDDDDays Sunday-Saturday

Here are some example date formats, all them for January 1, 2006:

To Display AsUse
January 1, 2006MMMM D, YYYY
Sunday, Jan 01, 2006DDDD, MMM DD, YYYY
2006-01-01YYYY-MM-DD

Example

// Change the format of dates in the time bar
Set_Property(@Window:".OLE_SCHEDULE", "OLE.DateHeaderFormat", "DD-MM-YYYY")

See Also

TimeBarAMPM

  • No labels