<?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 Adding year on to date field using field calculator  in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/adding-year-on-to-date-field-using-field/m-p/100452#M4101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there all&lt;/P&gt;&lt;P&gt;I am trying to automatically add a year, to a known date in a field, in to a newly, created field in the attribute table.&lt;/P&gt;&lt;P&gt;So if user enters today's date, the new field should show today's date + 1 year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this code in the field calculator of the attribute table = DateAdd('yyyy',[$feature.year],[$feature.date]) - but the field entry stays as 'NULL' even though the code is verified and pliable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am open to other suggestions if there is another work around, just needs to happen automatically when the user enters a new date (not sure if there is an ArcPy work around).&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for any assistance!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2020 14:46:48 GMT</pubDate>
    <dc:creator>DarrenDe_Lange</dc:creator>
    <dc:date>2020-08-26T14:46:48Z</dc:date>
    <item>
      <title>Adding year on to date field using field calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/adding-year-on-to-date-field-using-field/m-p/100452#M4101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there all&lt;/P&gt;&lt;P&gt;I am trying to automatically add a year, to a known date in a field, in to a newly, created field in the attribute table.&lt;/P&gt;&lt;P&gt;So if user enters today's date, the new field should show today's date + 1 year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this code in the field calculator of the attribute table = DateAdd('yyyy',[$feature.year],[$feature.date]) - but the field entry stays as 'NULL' even though the code is verified and pliable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am open to other suggestions if there is another work around, just needs to happen automatically when the user enters a new date (not sure if there is an ArcPy work around).&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for any assistance!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 14:46:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/adding-year-on-to-date-field-using-field/m-p/100452#M4101</guid>
      <dc:creator>DarrenDe_Lange</dc:creator>
      <dc:date>2020-08-26T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding year on to date field using field calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/adding-year-on-to-date-field-using-field/m-p/100453#M4102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not arcpy per se, but take a look a the &lt;A href="https://www.geeksforgeeks.org/python-datetime-timedelta-function/"&gt;datetime.timedelta()&lt;/A&gt; function in python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 16:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/adding-year-on-to-date-field-using-field/m-p/100453#M4102</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-08-26T16:34:02Z</dc:date>
    </item>
  </channel>
</rss>

