<?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 replacement for DatePart in arcade for pro calculate field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/replacement-for-datepart-in-arcade-for-pro/m-p/1079918#M43410</link>
    <description>&lt;P&gt;I was wondering if there is any equivalent for the DatePart helper from desktop? I am trying to get the date from 1-365 and have seen that DatePart ('y' [DateTime Field]) works, but have not been able to find the equivalent for pro in the calculate field.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 22:04:50 GMT</pubDate>
    <dc:creator>SteveGuiry</dc:creator>
    <dc:date>2021-07-16T22:04:50Z</dc:date>
    <item>
      <title>replacement for DatePart in arcade for pro calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/replacement-for-datepart-in-arcade-for-pro/m-p/1079918#M43410</link>
      <description>&lt;P&gt;I was wondering if there is any equivalent for the DatePart helper from desktop? I am trying to get the date from 1-365 and have seen that DatePart ('y' [DateTime Field]) works, but have not been able to find the equivalent for pro in the calculate field.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 22:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/replacement-for-datepart-in-arcade-for-pro/m-p/1079918#M43410</guid>
      <dc:creator>SteveGuiry</dc:creator>
      <dc:date>2021-07-16T22:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: replacement for DatePart in arcade for pro calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/replacement-for-datepart-in-arcade-for-pro/m-p/1079930#M43412</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Text &lt;/STRONG&gt;will do it. &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#text" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/arcade/function-reference/data_functions/#text&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;Text([DateTimeField], 'Y')&lt;/PRE&gt;&lt;P&gt;Edit: 'DDD' in the format param will get the day number from 1 to 365.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 22:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/replacement-for-datepart-in-arcade-for-pro/m-p/1079930#M43412</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-07-16T22:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: replacement for DatePart in arcade for pro calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/replacement-for-datepart-in-arcade-for-pro/m-p/1080333#M43442</link>
      <description>&lt;P&gt;That did the trick for the most part! I had to omit the square brackets to get the desired values, and had to make a new field so the values were numeric for my purposes, but otherwise was exactly what I was looking for. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 16:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/replacement-for-datepart-in-arcade-for-pro/m-p/1080333#M43442</guid>
      <dc:creator>SteveGuiry</dc:creator>
      <dc:date>2021-07-19T16:16:01Z</dc:date>
    </item>
  </channel>
</rss>

