<?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 Re: Assign by Year in the field Calcuator using VB Script ? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744795#M41916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aww.. I see. Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2016 17:39:00 GMT</pubDate>
    <dc:creator>DEAF_PROBERT_68</dc:creator>
    <dc:date>2016-09-21T17:39:00Z</dc:date>
    <item>
      <title>Assign by Year in the field Calcuator using VB Script ?</title>
      <link>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744793#M41914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I am working on several shapefiles that needed to be populate Date in the field column. How do you do assign VBscript in the field calculator to assign for one year &amp;nbsp;for 2010 or 2016 &amp;nbsp;or 2014 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems every time I tried to follow what ESRI field calculator I get failed ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this : Date ( "2016" ) returns failed !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a better suggest or work around, I can do either VB Script or Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 17:22:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744793#M41914</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2016-09-21T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Assign by Year in the field Calcuator using VB Script ?</title>
      <link>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744794#M41915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;I assume you're trying to calculate this into a date datatype field? I believe you need to supply a day, month, and year&amp;nbsp;to fit the format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/fundamentals-of-date-fields.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/fundamentals-of-date-fields.htm"&gt;Fundamentals of date fields—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;A coverage or shapefile stores dates in a date field with this format: yyyy-mm-dd. A geodatabase formats the date as datetime yyyy-mm-dd hh:mm:ss AM or PM.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 17:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744794#M41915</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-09-21T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Assign by Year in the field Calcuator using VB Script ?</title>
      <link>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744795#M41916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aww.. I see. Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 17:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744795#M41916</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2016-09-21T17:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Assign by Year in the field Calcuator using VB Script ?</title>
      <link>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744796#M41917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also found this&amp;nbsp;&lt;A href="https://community.esri.com/thread/16945"&gt;https://community.esri.com/thread/16945&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and look at what Marcus Perrine &amp;nbsp;wrote. That one worked too..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744796#M41917</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2016-09-21T18:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign by Year in the field Calcuator using VB Script ?</title>
      <link>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744797#M41918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your required context is for a year only why not use a integer field instead of a date field? &amp;nbsp;However, if you want to assign a Year only within a date field, then you would have to chose a default value for your Month and day as&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/19932"&gt;Darren Wiens&lt;/A&gt;&amp;nbsp; link indicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If changing your date field to an integer is not an option you can use the the following script and substitute your own default month/day....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CDATE("1/1/2016")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note in vbscript if memory serves right Date() returns the system date......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 15:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744797#M41918</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2016-09-22T15:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assign by Year in the field Calcuator using VB Script ?</title>
      <link>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744798#M41919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. The reason is that I am asking is because I have the geodatabase that was already done by somebody else and use the template that I cannot change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggest &amp;nbsp;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 16:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/assign-by-year-in-the-field-calcuator-using-vb/m-p/744798#M41919</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2016-09-22T16:40:47Z</dc:date>
    </item>
  </channel>
</rss>

