ComponentOne GanttView for WPF
Timescale Formats
Features > Task Management > Timescale > Timescale Formats

GanttView supports various formats specifiers for the timescale labels. You can specify these format specifiers through the Format property of the ScaleTier class. 

Standard Date and Time Formats

Format Description

s

s is the standard date/time format specifier. For example, s(x) where 'x' is a placeholder for one of the following letters: d, D, f, g, m, t, y.

sd

Short date pattern (11/11/2016)

sD

Long date pattern (Thursday, November 11, 2016)

sf

Full date and time pattern (Friday, November 11, 2016 10:00 AM)

sg

General date and time pattern (11/11/2016 10:00 AM)

sm

Month day pattern (April 10)

st

Short time pattern (10:00 AM)

sy

Year month pattern (April, 2008)

Year Formats

Format Description

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

Format Description

h

Represents a half year as a number 1 or 2

h {N1, N2}

Customized half year representation

Quarterly Formats

Format Description

q

Represents a quarter as a number from 1 through 4

q {N1, N2, N3, N4}

Customized quarter representation

Calendar Month Formats

Format Description

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

Format Description

k

Represents the week of the year number 1 to 53

kk

Represents the week of the year number 01 to 53

Day of the Month Number Formats

Format Description

d

Represents the day of the year as a number from 1 through 31

dd

Represents the day of the year as a number from 01 through 31

Day of the Year Number Formats

Format Description

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

Format Description

w

Single-letter week day (For example, 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

Format Description

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 AM/PM designator

tt

Represents the AM/PM designator

Other Specifiers

Format Description

:

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