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 |
|---|---|
| YY | Years 00-99 |
| YYYY | Years 0001-2999 |
| M | Months 1-12 |
| MM | Months 01-12 |
| MMM | Months Jan-Dec |
| MMMM | Months January-December |
| MMMMM | Months J-D |
| D | Days 1-31 |
| DD | Days 01-31 |
| DDD | Days Sun-Sat |
| DDDD | Days Sunday-Saturday |
Here are some example date formats, all them for January 1, 2006:
| To Display As | Use |
|---|---|
| January 1, 2006 | MMMM D, YYYY |
| Sunday, Jan 01, 2006 | DDDD, MMM DD, YYYY |
| 2006-01-01 | YYYY-MM-DD |
Example
// Change the format of dates in the time bar Set_Property(@Window:".OLE_SCHEDULE", "OLE.DateHeaderFormat", "DD-MM-YYYY")