property TimeScale.MajorTimeLabel as String
Indicates the label to be displayed on the major ruler of the current TimeScale object.

TypeDescription
String A string expression that defines the extended HTML format to display the labels on the major rulers.
By default, the MajorTimeLabel property is "<%hh%>:<%nn%> <%AM/PM%>", which indicates that the major rulers displays the time using the AM/PM time indicators. The MajorTimeLabel property defines the time label to be shown on the major rulers, while the MinorTimeLabel property specifies the time label to be shown on minor rulers. The MajorLabelColor property indicates the color to show the labels on major rulers. The MajorTimeLabelPlainText property should be set on False, if the MajorTimeLabel property uses UI font attributes like <b>, <fgcolor>, and so on. The MajorTimeRuler property indicates the time to show the major rulers. 

The TimeZone property can be used to programmatically update the time zone. You can use the ShortTimeFormat property to define a 24-hours format, by removing the <%AM.PM%> TAG. The Caption property specifies the HTML caption to be displayed on the top side of the time scale. 

The major lines can be changed using the following Background properties:

Here's a few samples on how you can use the MajorTimeLabel property:

The MajorTimeLabel property supports the following HTML tags:

The MajorTimeLabel property supports the following HTML tags ( The MajorTimeLabelPlainText property must be set on False, else the following UI attributes are not shown ) :