Building a Chart > Annotating with TimeLabels > Time Format |
Use the Format property to specify what text to display at each annotation point. Its IsDefault property allows the chart to automatically determine an appropriate format based on the Unit property and the data, so you often do not need to customize the format.
Format specifies a time format. You build a time format using special format codes. The chart displays only the parts of the date/time specified by Format. The following lists all of the valid format codes:
%a |
Weekday name, abbreviated |
%A |
Weekday name |
%b |
Month name, abbreviated |
%B |
Month name |
%c |
Appropriate date/time representation |
%d |
Day of month (01 to 31) |
%H |
Hour (0 to 23) |
%I |
Hour (0 to 12) |
%j |
Day number of year (001 to 366) |
%m |
Month number (01 to 12) |
%M |
Minute of hour (00 to 59) |
%p |
AM or PM |
%S |
Seconds (00 to 61) |
%U |
Week number of year (00 to 53), Sunday first day of week 1 |
%w |
Weekday number (0 to 6), Sunday = 0 |
%W |
Week number of year (00 to 53), Monday first day of week 1 |
%x |
Appropriate date representation |
%X |
Appropriate time representation |
%y |
Year number within century (00 to 99) |
%Y |
Year |
%Z |
Time zone (shows nothing if time zone not known) |
All TimeLabels properties are located on their own dialog on the Annotation Tab (Axes) on the Property Pages. Set AnnotationMethod to TimeLabels for the X-axis and click the button beside that property to display the dialog.