# FarPoint.Win.SuperEdit.GeneralFormatter.ConvertDatePartsToValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_SuperEdit_GeneralFormatter_ConvertDatePartsToValue_" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.ConvertDatePartsToValue*">ConvertDatePartsToValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_SuperEdit_GeneralFormatter_ConvertDatePartsToValue_" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.ConvertDatePartsToValue*"></a>
<h4 id="FarPoint_Win_SuperEdit_GeneralFormatter_ConvertDatePartsToValue_FarPoint_Win_SuperEdit_GeneralFormatter_FpseDecodeParameters_System_Int32_System_Int32_System_Int32_System_DateTime__" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.ConvertDatePartsToValue(FarPoint.Win.SuperEdit.GeneralFormatter.FpseDecodeParameters,System.Int32,System.Int32,System.Int32,System.DateTime@)">ConvertDatePartsToValue(FpseDecodeParameters, int, int, int, ref DateTime)</h4>
<div class="markdown level1 summary"><p>Given the date parts, convert to a date value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual bool ConvertDatePartsToValue(GeneralFormatter.FpseDecodeParameters pParams, int lCurrYear, int lCurrCentury, int usCentSplitYear, ref DateTime dtRetDate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function ConvertDatePartsToValue(pParams As GeneralFormatter.FpseDecodeParameters, lCurrYear As Integer, lCurrCentury As Integer, usCentSplitYear As Integer, ByRef dtRetDate As Date) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.SuperEdit.GeneralFormatter.html">GeneralFormatter</a>.<a class="xref" href="FarPoint.Win.SuperEdit.GeneralFormatter.FpseDecodeParameters.html">FpseDecodeParameters</a></td>
      <td><span class="parametername">pParams</span></td>
      <td><p>Decode parameters</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lCurrYear</span></td>
      <td><p>Current year</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lCurrCentury</span></td>
      <td><p>Current century</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">usCentSplitYear</span></td>
      <td><p>Century split year</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">dtRetDate</span></td>
      <td><p>Return date time</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if the date parts could be converted to a date value; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>
</div>
