[]
        
(Showing Draft Content)

C1.GanttView.ScaleTier.Format

Format Property

Format

Gets or sets the format string for the scale labels.

Declaration
public string Format { get; set; }
Remarks

The list of supported format specifiers.

sx, where x is a standard date/time format specifier: 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)

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

h - Represents a half-year as a number 1 or 2. h{N1,N2} - Custom half-year name

q - Represents a quarter as a number from 1 through 4. q{N1,N2,N3,N4} - Custom quarter name

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

k - Represents the week of the year number from 1 to 53. kk - Represents the week of the year number from 01 to 53.

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

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

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

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}

: - Use DateTimeFormatInfo.TimeSeparator / - Use DateTimeFormatInfo.DateSeparator " - Represents a quoted string (quotation mark). ' - Represents a quoted string (apostrophe).

\c - Displays the character 'c' as a literal Other character - Copies to the result string