Internet Vision Software
Index : Common Attributes : LabelXFormat Attribute

../online_help/images/n_admin.gif

Quick Reference...

Attribute Name
LabelXFormat
Type String
Summary: Sets the format for labels along the X axis.

Description:

The LabelXFormat property defines a template for formatting numeric, date and time labels. It is not applied to user-defined text labels.

The X axis can be labelled with text, numbers or an automatically generated series of date and time labels. To label the axis with a series of dates or times, use the LabelXType attribute to select the type of labels (date, time, date and time, or weekday). Set a starting date using the LabelXDateStart attribute and an increment using LabelXDateInc.

To apply a format to dates or times, set LabelXFormat.This property accepts a label format string similar to those for user-defined date and time formats in Visual Basic. A sequence of placeholder and control characters defines how dates and times are formatted for display.

Date format characters

/ - : . , Delimiters. Any of these characters, as well as a space character, may be used to separate elements of the displayed date.
c Display the date as ddddd and the time as ttttt in that order.
d Display the day as a number without a leading zero (1-31).
dd Display the day as a number with a leading zero (01-31).
ddd Display the day as an abbreviation (Sun/Sat).
dddd Display the day as a full name (Sunday/Saturday).
ddddd Display the date as a short date (including day, month, and year), formatted according to your system's short date format setting. The default short date format is m/d/yy.
dddddd Display the date as a long date (including day, month, and year) formatted according to the long date setting recognised by your system. The default long date format is mmmm dd, yyyy.
w Display the day of the week as a number (1 for Sunday through 7 for Saturday).
ww Display the week of the year as a number (1-53).
m Display the month as a number without a leading zero (1-12).
mm Display the month as a number with a leading zero (01-12).
mmm Display the month as an abbreviation (Jan-Dec).
mmmm Display the month as a full month name (January-December).
q Display the quarter of the year as a number (1-4).
y Display the day of the year as a number (1-366).
yy Display the year as a 2-digit number (00-99).
yyyy Display the year as a 4-digit number (1900-2037).

Example:

yyyy-mm-dd Format String Displayed
1997-03-01 d mmm yy 1 Mar 97
1997-03-01 dddd Saturday
1997-03-01 mmmm March
1997-03-01 dd mmmm yyyy 01 March 1997
1997-03-01 dddd, mmmm d, yyyy Saturday, March 1, 1997
1997-03-01 w

7

1997-03-01 q 1
1997-03-01 y 60

Time format characters

/ - : . , Delimiters. Any of these characters, as well as a space character, may be used to separate elements of the displayed time.
h Display the hour as a number without leading zeros (1-23).
hh Display the hour as a number with leading zeros (01-23).
n Display the minute as a number without leading zeros (0-59).
nn Display the minute as a number with leading zeros (00-59).
s Display the second as a number without leading zeros (0-59).
ss Display the second as a number with leading zeros (00-59).
ttttt Display a time as a complete time (including hour, minute, and second), formatted using the time separator defined by the time format recognised by your system. The default time format is h:mm:ss.
AM/PM Use the 12-hour clock and display an uppercase AM with any hour before noon; display an uppercase PM with any hour between noon and 11:59 P.M.
am/pm Use the 12-hour clock and display a lowercase AM with any hour before noon; display a lowercase PM with any hour between noon and 11:59 P.M.
A/P Use the 12-hour clock and display an uppercase A with any hour before noon; display an uppercase P with any hour between noon and 11:59 P.M.
a/p Use the 12-hour clock and display a lowercase A with any hour before noon; display a lowercase P with any hour between noon and 11:59 P.M.

hh-mm-ss Format String Displayed
13-30-25 ttttt 13:30:25
13-30-25 h:nn 13:30
13-30-25 nn:ss 30:25
13-30-25 h:nn AM/PM 1:30 PM
13-30-25 hh:nn:ss a/p 01:30:25 p


Remarks:

None.

Example...

<CFXGRAPHICSSERVER ... LabelXFormat="..." ... >

See the examples in the description above...

Copyright 1999 Internet Vision Software Limited