# GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter" class="text-break">DateFormatConverter Class
</h1>
  <div class="markdown level0 summary"><p>Represents a converter that converts a date time convertible value to a string based on the pattern.</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"><span class="xref">DateFormatConverter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.ivalueconverter">IValueConverter</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Localizability(LocalizationCategory.NeverLocalize)]
public class DateFormatConverter : IValueConverter, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Localizability(LocalizationCategory.NeverLocalize)&gt;
Public Class DateFormatConverter
    Implements IValueConverter, INotifyPropertyChanged</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.html">DateFormatConverter</a> is used to convert a given text to another string in a binding process based on the specified format. If the text is valid to the GrapeCity.Windows.InputMan.DateFormatConverter.Pattern
property, it returns a translated string back; otherwise, it returns error string.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter__ctor">DateFormatConverter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.html">DateFormatConverter</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_EmptyEraString" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.EmptyEraString">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.EmptyEraString.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_EmptyEraString">EmptyEraString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string which is filling char and show empty era time by Gregorian format when pattern has era keyword.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_ErrorString" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.ErrorString">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.ErrorString.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_ErrorString">ErrorString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string is not suited to pattern.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_NullString" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.NullString">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.NullString.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_NullString">NullString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string to return when converted object is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">String.Empty</a> or <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_Pattern" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.Pattern">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.Pattern.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_Pattern">Pattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format for <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.html">DateFormatConverter</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.Convert.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">Convert(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a given value to another <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> based on specified pattern.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.ConvertBack(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter.ConvertBack.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateFormatConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">ConvertBack(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies the target data before passing it to the source object.  This method is called only in <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.bindingmode#system-windows-data-bindingmode-twoway">TwoWay</a> bindings.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
