<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to populate date field with current date  in C# or Vb.net in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-populate-date-field-with-current-date-in-c/m-p/54682#M291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pRow.set_Value(pRow.Fields.FindField("DATECREATED"), Today)&lt;BR /&gt; pRow.Store()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 13:22:57 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2019-10-25T13:22:57Z</dc:date>
    <item>
      <title>How to populate date field with current date  in C# or Vb.net</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-populate-date-field-with-current-date-in-c/m-p/54682#M291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pRow.set_Value(pRow.Fields.FindField("DATECREATED"), Today)&lt;BR /&gt; pRow.Store()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 13:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-populate-date-field-with-current-date-in-c/m-p/54682#M291</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2019-10-25T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate date field with current date  in C# or Vb.net</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-populate-date-field-with-current-date-in-c/m-p/54683#M292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do something like this&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;'Populate the stats table &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; the iteration&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
    Dim row As IRow &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateRow
    Dim fields As IFields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Fields

    Dim fDate As Date &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fields&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FindField&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"DateCreated"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    row&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Value&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fDate&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Today
    row&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Store&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

 &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another method would be creating an Update SQL Query and executing that assuming that your data is in a real database and not a file geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-populate-date-field-with-current-date-in-c/m-p/54683#M292</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2021-12-10T22:04:54Z</dc:date>
    </item>
  </channel>
</rss>

