ComponentOne GanttView for WinForms
Timescale Formats

The following table details the available format specifiers for the timescale labels. For more information see the Timescale Dialog Box and/or the Format property.

Format Specifier Description
Standard Date/Time Formats
s s is the standard date/time format specifier. Ex: s(x) where 'x' is a placeholder for one of the following letters: d, D, f, g, m, t, y.
sd Short date pattern (4/10/2008).
sD Long date pattern (Thursday, April 10, 2008).
sf Full date/time pattern (Thursday, April 10, 2008 6:30 AM).
sg General date/time pattern (4/10/2008 6:30 AM).
sm Month day pattern (April 10).
st Short time pattern (6:30 AM).
sy Year month pattern (April, 2008).
Year Formats
yy Represents the year as a two-digit number.
yyy Represents the year with a minimum of three digits.
yyyy Represents the year as a four-digit number.
Half Year Formats
h Represents a half-year as a number 1 or 2.
h{N1,N2} Custom half-year name.
Quarterly Formats
q Represents a quarter as a number from 1 through 4.
q{N1,N2,N3,N4} Custom quarter name.
Calendar Month Formats
m Represents the month as a number from 1 through 12.
mm Represents the month as a number from 01 through 12.
n Single-letter month name.
nnn Use DateTimeFormatInfo.GetAbbreviatedMonthName.
nnnn Use DateTimeFormatInfo.GetMonthName.
n{N1,N2,N3,N4,N5,N6,N7,N8,N9,N10,N11,N12} Custom month name.
e{N1,N2,N3} Custom thirds-of-month name.
Week of the Year Number Formats
k Represents the week of the year number from 1 to 53.
kk Represents the week of the year number from 01 to 53.
Day of the Month Number Formats
d Represents the day of the month as a number from 1 through 31.
dd Represents the day of the month as a number from 01 through 31.
Day of the Year Number Formats
b Represents the day of the year as a number from 1 through 366.
bbb Represents the day of the year as a number from 001 through 366.
Single Letter Week Day Formats
w Single-letter week day (S, M, T, W,...)
ww Use DateTimeFormatInfo.GetShortestDayName.
www Use DateTimeFormatInfo.GetAbbreviatedDayName.
wwww Use DateTimeFormatInfo.GetDayName.
w{N1,N2,N3,N4,N5,N6,N7} Custom week day name.
Time Formats
a Represents the hour as a number from 1 through 12.
aa Represents the hour as a number from 01 through 12.
u Represents the hour as a number from 0 through 23.
uu Represents the hour as a number from 00 through 23.
i Represents the minute as a number from 0 through 59.
ii Represents the minute as a number from 00 through 59.
t Represents the first character of the AM/PM designator.
tt Represents the AM/PM designator.
t{N1,N2} Custom AM/PM designator.
Other Specifiers
: Separates the components of a time (use DateTimeFormatInfo.TimeSeparator)
/ Separates the components of a date (use DateTimeFormatInfo.DateSeparator)
Starts/ends a double quoted string (quotation mark).
Represents a quoted string (apostrophe).
\c Displays the character 'c' as a literal.
Other character Copies to the result string literally.
See Also