# C1.DataEngine.Op.DtPart

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataEngine_Op_DtPart_" data-uid="C1.DataEngine.Op.DtPart*">DtPart Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataEngine_Op_DtPart_" data-uid="C1.DataEngine.Op.DtPart*"></a>
<h4 id="C1_DataEngine_Op_DtPart_C1_DataEngine_Column_C1_DataEngine_DateTimeParts_" data-uid="C1.DataEngine.Op.DtPart(C1.DataEngine.Column,C1.DataEngine.DateTimeParts)">DtPart(Column, DateTimeParts)</h4>
<div class="markdown level1 summary"><p>DateTime part: unary, simple (without aggregation) operation on DateTime.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ColumnOp DtPart(Column col, DateTimeParts part)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DtPart(col As Column, part As DateTimeParts) As ColumnOp</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="C1.DataEngine.Column.html">Column</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>DateTime operand.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.DataEngine.DateTimeParts.html">DateTimeParts</a></td>
      <td><span class="parametername">part</span></td>
      <td><p>Part to extract from DateTime values.</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="C1.DataEngine.ColumnOp.html">ColumnOp</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
