<?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: Labelling by Year from Date Field in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290392#M16626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how do you do this but show it like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dd/mm/yyyy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. 31/01/2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 20:29:54 GMT</pubDate>
    <dc:creator>FredMcDoddle</dc:creator>
    <dc:date>2013-04-03T20:29:54Z</dc:date>
    <item>
      <title>Labelling by Year from Date Field</title>
      <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290387#M16621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to label using only the year from the date field.&amp;nbsp; How do I do this?&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcView 9.3.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290387#M16621</guid>
      <dc:creator>LindseyMitchener</dc:creator>
      <dc:date>2012-03-21T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling by Year from Date Field</title>
      <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290388#M16622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use this syntax where DATE_ is your date field:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DatePart("yyyy",[Date_])&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290388#M16622</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-03-21T13:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling by Year from Date Field</title>
      <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290389#M16623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; You can use this syntax where DATE_ is your date field:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;DatePart("yyyy",[Date_])&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken Buja is absolutely right ... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right click on shape file in &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;STRONG&gt;Table of contents&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, than &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;Labels&lt;/STRONG&gt;&lt;SPAN&gt; Tab, than &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;Text string&lt;/STRONG&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;STRONG&gt;Button Expression&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; than field &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;Expression&lt;/STRONG&gt;&lt;SPAN&gt; and copy-paste code from kenbuja in text box, and replace &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;DATE_&lt;/SPAN&gt;&lt;SPAN&gt; with your data field name. (This is for ArcGis 10, but I assume that is same for previous 9.x versions, as I can remember ...)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290389#M16623</guid>
      <dc:creator>UrosDjuric</dc:creator>
      <dc:date>2012-03-21T13:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling by Year from Date Field</title>
      <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290390#M16624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting a Invalid procedure call/aargument using "DatePart"&amp;nbsp;&amp;nbsp; in the Field Calculator ArcGIS 10 SP3 XP&amp;nbsp; FileGeodataBase Feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DatePart("dd",&amp;nbsp; [Date_Observed]).&amp;nbsp; Date_Observed is a date field.&amp;nbsp; The field I am calculating is text, long, date - I've tried all.&amp;nbsp; I also tried DatePart("d",&amp;nbsp; [Date_Observed]).&amp;nbsp; I have used this successfully in 9.3.1.&amp;nbsp; Any other options ?&amp;nbsp; Anyone now the python equivalent??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 20:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290390#M16624</guid>
      <dc:creator>DianeMcConnaughey</dc:creator>
      <dc:date>2012-04-05T20:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling by Year from Date Field</title>
      <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290391#M16625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DatePart ("d", [date] ) works for me, calculating a text field from a date field. Maybe double check that the date field is actually a date field, and not text disguised as a date...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 20:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290391#M16625</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-04-05T20:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling by Year from Date Field</title>
      <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290392#M16626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how do you do this but show it like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dd/mm/yyyy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. 31/01/2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 20:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290392#M16626</guid>
      <dc:creator>FredMcDoddle</dc:creator>
      <dc:date>2013-04-03T20:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling by Year from Date Field</title>
      <link>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290393#M16627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, I worked out a way. There might be a better way but this works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt; DatePart("d", [Sampled_Date_Time] )&amp;nbsp; &amp;amp; "/"&amp;nbsp; &amp;amp; DatePart("m", [Sampled_Date_Time] ) &amp;amp; "/"&amp;nbsp; &amp;amp; DatePart("yyyy", [Sampled_Date_Time] ) &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see also:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ms174420.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms174420.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 20:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/labelling-by-year-from-date-field/m-p/290393#M16627</guid>
      <dc:creator>FredMcDoddle</dc:creator>
      <dc:date>2013-04-03T20:43:19Z</dc:date>
    </item>
  </channel>
</rss>

