<?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 Arcade Equivalent of Date getFullYear() in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-equivalent-of-date-getfullyear/m-p/532565#M3616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build an arcade expression that evaluates the week number of the year and does a formats the popup a specific way depending on if the week is odd or even. I'm struggling to get this working with arcade as&amp;nbsp; I can't find an equivalent to&amp;nbsp; new Date(now.getFullYear(), 0, 1) to get the first day of the year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially the logic i am trying to recreate in arcade is&amp;nbsp;&lt;/P&gt;&lt;P&gt;now = new Date();&lt;BR /&gt;today = new Date(now.getFullYear(), now.getMonth(), now.getDate());&lt;BR /&gt;onejan = new Date(now.getFullYear(), 0, 1);&lt;BR /&gt;numOfWeek = Math.ceil((((today - firstOfYear) / 86400000)-1)/7);&lt;BR /&gt;return(numOfWeek);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do the majority of it on my own I'm just not sure of the now.GetFullYear() part. Any assistance is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shawn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 20:33:05 GMT</pubDate>
    <dc:creator>ShawnRoberts1</dc:creator>
    <dc:date>2018-09-10T20:33:05Z</dc:date>
    <item>
      <title>Arcade Equivalent of Date getFullYear()</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-equivalent-of-date-getfullyear/m-p/532565#M3616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build an arcade expression that evaluates the week number of the year and does a formats the popup a specific way depending on if the week is odd or even. I'm struggling to get this working with arcade as&amp;nbsp; I can't find an equivalent to&amp;nbsp; new Date(now.getFullYear(), 0, 1) to get the first day of the year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially the logic i am trying to recreate in arcade is&amp;nbsp;&lt;/P&gt;&lt;P&gt;now = new Date();&lt;BR /&gt;today = new Date(now.getFullYear(), now.getMonth(), now.getDate());&lt;BR /&gt;onejan = new Date(now.getFullYear(), 0, 1);&lt;BR /&gt;numOfWeek = Math.ceil((((today - firstOfYear) / 86400000)-1)/7);&lt;BR /&gt;return(numOfWeek);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do the majority of it on my own I'm just not sure of the now.GetFullYear() part. Any assistance is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shawn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 20:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-equivalent-of-date-getfullyear/m-p/532565#M3616</guid>
      <dc:creator>ShawnRoberts1</dc:creator>
      <dc:date>2018-09-10T20:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Equivalent of Date getFullYear()</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-equivalent-of-date-getfullyear/m-p/532566#M3617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will return&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR class=""&gt;&lt;TD colspan="1" data-i18n="nls.result" rowspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1"&gt;&lt;CODE&gt;01 Jan 2018 12:00:00 am&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Year&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Now&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="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 21:01:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-equivalent-of-date-getfullyear/m-p/532566#M3617</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-09-10T21:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Equivalent of Date getFullYear()</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-equivalent-of-date-getfullyear/m-p/532567#M3618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect thanks Ken! That worked perfectly.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shawn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-equivalent-of-date-getfullyear/m-p/532567#M3618</guid>
      <dc:creator>ShawnRoberts1</dc:creator>
      <dc:date>2018-09-11T13:35:43Z</dc:date>
    </item>
  </channel>
</rss>

