# C1.Win.GanttView.ScaleTier.Format

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_GanttView_ScaleTier_Format_" data-uid="C1.Win.GanttView.ScaleTier.Format*">Format Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_GanttView_ScaleTier_Format_" data-uid="C1.Win.GanttView.ScaleTier.Format*"></a>
<h4 id="C1_Win_GanttView_ScaleTier_Format" data-uid="C1.Win.GanttView.ScaleTier.Format">Format</h4>
<div class="markdown level1 summary"><p>Gets or sets the format string for the scale labels.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Format { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Format As String</code></pre>
</div>
<h5 id="C1_Win_GanttView_ScaleTier_Format_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The list of supported format specifiers.</p>
<p>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)</p>
<p>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</p>
<p>h - Represents a half-year as a number 1 or 2.
h{N1,N2} - Custom half-year name</p>
<p>q - Represents a quarter as a number from 1 through 4.
q{N1,N2,N3,N4} - Custom quarter name</p>
<p>m - Represents the month as a number from 1 through 12
mm - Represents the month as a number from 01 through 12</p>
<p>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</p>
<p>e{N1,N2,N3} - Custom thirds-of-month name</p>
<p>k - Represents the week of the year number from 1 to 53.
kk - Represents the week of the year number from 01 to 53.</p>
<p>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</p>
<p>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</p>
<p>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</p>
<p>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</p>
<p>i - Represents the minute as a number from 0 through 59
ii - Represents the minute as a number from 00 through 59</p>
<p>t - Represents the first character of the AM/PM designator
tt - Represents the AM/PM designator
t{N1,N2}</p>
<p>: - Use DateTimeFormatInfo.TimeSeparator
/ - Use DateTimeFormatInfo.DateSeparator
&quot; - Represents a quoted string (quotation mark).
' - Represents a quoted string (apostrophe).</p>
<p>\c - Displays the character 'c' as a literal
Other character - Copies to the result string</p>
</div>
</div>
