# GrapeCity.Documents.Word.Fields.TimeFormatOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Fields_TimeFormatOptions" data-uid="GrapeCity.Documents.Word.Fields.TimeFormatOptions" class="text-break">TimeFormatOptions Class
</h1>
  <div class="markdown level0 summary"><p>Represents options used to format time.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Word.Fields.BaseFieldOptions.html">BaseFieldOptions</a></div>
    <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.Fields.FieldFormatOptions.html">FieldFormatOptions</a></div>
    <div class="level3"><span class="xref">TimeFormatOptions</span></div>
      <div class="level4"><a class="xref" href="GrapeCity.Documents.Word.Fields.DateFormatOptions.html">DateFormatOptions</a></div>
      <div class="level4"><a class="xref" href="GrapeCity.Documents.Word.Fields.TimeFieldOptions.html">TimeFieldOptions</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.Fields.IFieldOptions.html">IFieldOptions</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.Fields.html">GrapeCity.Documents.Word.Fields</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_Fields_TimeFormatOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TimeFormatOptions : FieldFormatOptions, IFieldOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TimeFormatOptions
    Inherits FieldFormatOptions
    Implements IFieldOptions</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_TimeFormatOptions_DateTimeFormat" data-uid="GrapeCity.Documents.Word.Fields.TimeFormatOptions.DateTimeFormat">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TimeFormatOptions.DateTimeFormat.html#GrapeCity_Documents_Word_Fields_TimeFormatOptions_DateTimeFormat">DateTimeFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the date time format.</p>
<ul><li><span class="term">aaa</span>Formats the day of the week or month in an abbreviated form according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">A</span>Formats the day of the month as a number without a leading zero for single-digit days in Japanese numerals.</li><li><span class="term">bb</span>Formats the year as a 2-digit number according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">bbbb</span>Formats the year as a 4-digit number according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">BB</span>Formats the year as a 2-digit number. Defaults to the Gregorian [ISO 8601] calendar, but also responds to the \s and \h switches.</li><li><span class="term">BBBB</span>Formats the year as a 4-digit number. Defaults to the Gregorian [ISO 8601] calendar, but also responds to the \s and \h switches.</li><li><span class="term">d</span>Formats the day of the week or day of the month as a number without a leading zero for single-digit days. Defaults to the Gregorian calendar [ISO 8601], but also changes in the presence of the \s and \h switches, and the bb or bbbb picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">dd</span>Formats the day of the week or day of the month as a number with a leading zero0 for single-digit days. Defaults to the Gregorian calendar [ISO 8601], but also changes in the presence of the \s and \h switches, and the bb or bbbb picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">ddd</span>Formats the day of the week or month in its abbreviated form according to the language specified by the lang element on the run containing the field instructions. Defaults to the Gregorian calendar [ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, ปป, ดดดด, ดดด, ดด, ด, วววว, ววว, วว, and ว picture item(to the Thai Buddhist Era calendar).</li><li><span class="term">dddd</span>Formats the day of the week as its full name according to the language specified by the lang element on the run containing the field instructions. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, ปป, ดดดด, ดดด, ดด, ด,วววว, ววว, วว, and ว picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">D</span>Formats the day of the week or day of the month as a number without a leading zero for single-digit days. Defaults to the Gregorian calendar [ISO 8601], but also changes in the presence of the \s and \h switches, and the bb or bbbb picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">DD</span>Formats the day of the month as a two-digit number (with a leading zero for single-digit days).Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb or bbbb picture item(to the Thai Buddhist Era calendar).</li><li><span class="term">DDD</span>Formats the day of the week in an abbreviated form according to the language specified by the lang element on the run containing the field instructions. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb or bbbb, ปปปป, ปป, ดดดด, ดดด, ดด, ด, วววว, ววว, วว, and ว picture item(to the Thai Buddhist Era calendar).</li><li><span class="term">DDDD</span>Formats the day of the week as its full name according to the language specified by the lang element on the run containing the field instructions. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, ปป, ดดดด, ดดด, ดด, ด, วววว, ววว, วว, and ว picture item(to the Thai Buddhist Era calendar).</li><li><span class="term">e</span>Formats the Japanese Emperor Era with no leading zero for single-digit years.</li><li><span class="term">ee</span>Formats the Japanese Emperor Era with a leading zero for single-digit years.</li><li><span class="term">E</span>Formats the era according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">EE</span>Formats the Gregorian year [ISO 8601] as a four-digit number, according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">g</span>Formats the era in shortest form as Romanized single letter according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">gg</span>Formats the era in medium form according to the language specified by the lang element  on the run containing the field instructions.</li><li><span class="term">ggg</span>Formats the era in full form according to the language specified by the lang element  on the run containing the field instructions.</li><li><span class="term">G</span> Formats the era as its first character according to the language specified by the lang element  on the run containing the field instructions.</li><li><span class="term">GG</span>Formats the era in full form according to the language specified by the lang element  on the run containing the field instructions.</li><li><span class="term">M</span>Formats the month as a number without a leading zero for single-digit months. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb or bbbb picture item(to the Thai Buddhist Era calendar).</li><li><span class="term">MM</span>Formats the month as a number with a leading zero for single-digit months. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb or bbbb picture item(to the Thai Buddhist Era calendar).</li><li><span class="term">MMM</span>Formats the month in its abbreviated form according to the language specified by the lang element on the run containing the field instructions. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, ปป, ดดดด, ดดด, ดด, ด, วววว, ววว, วว, and ว picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">MMMM</span>Formats the month as its full name according to the language specified by the lang element on the run containing the field instructions. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, ปป, ดดดด, ดดด, ดด, ด, วววว, ววว, วว, and ว picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">n</span>Formats the Japanese Emperor Era with no leading zero for single-digit years.</li><li><span class="term">nn</span>Formats the Japanese Emperor Era with leading zero for single-digit years.</li><li><span class="term">O</span>Formats the month as a number without a leading zero for single-digit months in Japanese numerals.</li><li><span class="term">w</span>Formats the day of the week in an abbreviated form according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">W</span>Formats the day of the week in an abbreviated form according to the language specified by the lang element on the run containing the field instructions.</li><li><span class="term">y</span>Formats the year as a 2-digit number. Does not work in romance languages. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches.</li><li><span class="term">yy</span> Formats the year as a 2-digit number. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches.</li><li><span class="term">yyyy</span>Formats the year as a 4-digit number. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches.</li><li><span class="term">Y</span>Formats the year as a 2-digit number. Does not work in romance languages. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, and ปป picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">YY</span>Formats the year as a 2-digit number. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, and ปป picture item(to the Thai Buddhist Era calendar).</li><li><span class="term">YYYY</span>Formats the year as a 4-digit number. Defaults to the Gregorian calendar[ISO 8601], but also changes in the presence of the \s and \h switches, and the bb, bbbb, ปปปป, and ปป picture item (to the Thai Buddhist Era calendar).</li><li><span class="term">ว</span>Formats the day of the month as a number without a leading zero for single-digit days in Thai numerals.</li><li><span class="term">วว</span>Formats the day of the month as a two-digit number (with a leading zero for single-digit days) in Thai numerals.</li><li><span class="term">ววว</span>Formats the Thai Buddhist Era day of the week in its abbreviated form in Thai.</li><li><span class="term">วววว</span>Formats the Thai Buddhist Era day of the week as its full name in Thai.</li><li><span class="term">ด</span>Formats the Thai Buddhist Era month as a number without a leading zero for single-digit months in Thai numerals.</li><li><span class="term">ดด</span>Formats the Thai Buddhist Era month as a two-digit number (with a leading zero for single-digit months) in Thai numerals.</li><li><span class="term">ดดด</span>Formats the Thai Buddhist Era month in its abbreviated form.</li><li><span class="term">ดดดด</span>Formats the Thai Buddhist Era month as its full name.</li><li><span class="term">ปป</span>Formats the Gregorian year as a 2-digit number using Thai numerals.</li><li><span class="term">ปปปป</span>Formats the Gregorian year [ISO 8601] as a 4-digit number using Thai numerals.</li><li><span class="term">h or H</span>Formats the hour of the day as a number without a leading zero for single-digit hours.</li><li><span class="term">hh or HH</span>Formats the hour of the day as a two-digit number (with a leading zero for single-digit hours).</li><li><span class="term">m</span>Formats the minute of the hour as a number without a leading zero for single-digit minutes.</li><li><span class="term">mm</span>Formats the minute of the hour as a two-digit number (with a leading zero for single-digit minutes).</li><li><span class="term">s or S</span>Formats the second of the minute as a number without a leading zero for single-digit seconds.</li><li><span class="term">ss or SS</span>Formats the second of the minute as a two-digit number (with a leading zero for single-digit seconds).</li><li><span class="term">r</span>Formats the hour of the day as 12-hour format in Japanese numerals.</li><li><span class="term">R</span>Formats the hour of the day as 24-hour format in Japanese numerals.</li><li><span class="term">am/pm or AM/PM</span>Formats time of the day designator.</li><li><span class="term">Other character</span>Includes the specified character in the result at that position. [Note: Commonly used characters are colon(:), hyphen(-), asterisk(*), slash(/), and space].</li><li><span class="term">'text'</span>Includes text in the result.</li></ul>
</td>
      </tr>
    </tbody>
  </table>

</div>
