<?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: Converting Month and Year in Power Automate in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1383599#M54851</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573013"&gt;@beachcamp&lt;/a&gt;&amp;nbsp;, I'm using this expression, but the date I'm getting (August 28, 5217) is not what is should be (February 16, 2024). Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheGeneralissimo_0-1708112818661.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95070i522DEF15DF7FA3F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheGeneralissimo_0-1708112818661.png" alt="TheGeneralissimo_0-1708112818661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 19:47:51 GMT</pubDate>
    <dc:creator>TheGeneralissimo</dc:creator>
    <dc:date>2024-02-16T19:47:51Z</dc:date>
    <item>
      <title>Converting Month and Year in Power Automate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1297239#M49816</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a workflow that is triggered when a survey is submitted. In the survey I have month and year as a question, I would like the feature attribute to be apart of the email, but it is displaying as a long string of numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the following expression and still now luck;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;formatDateTime(triggerOutputs()?[body/feature/attributes/'Month_Year'],'MMM').&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1297239#M49816</guid>
      <dc:creator>FavaN2021</dc:creator>
      <dc:date>2023-06-08T17:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Month and Year in Power Automate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1297260#M49818</link>
      <description>&lt;P&gt;Survey123 captures dates in "Epoch" or "Unix" time, which is to say seconds or milliseconds since Jan 1 1970.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This causes all sorts of fun for conversions in other systems, in fact sometimes I'm not sure if the Survey123 feature classes knows quite how to handle it. Although that's partly timezone issues I'm sure, but I digress.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my power automate fields I create an expression like:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;addSeconds(&lt;/SPAN&gt;&lt;SPAN&gt;'1970-1-1'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;Div(triggerOutputs()?[&lt;/SPAN&gt;&lt;SPAN&gt;'body/feature/attributes/survey_date'&lt;/SPAN&gt;&lt;SPAN&gt;],&amp;nbsp;1000),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'yyyy-MM-dd'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;P&gt;This takes any given date (in epoch time) coming from survey123 and returns a string like '2023-06-08', format as you please!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1297260#M49818</guid>
      <dc:creator>beachcamp</dc:creator>
      <dc:date>2023-06-08T17:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Month and Year in Power Automate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1297276#M49820</link>
      <description>&lt;P&gt;Thank you !&amp;nbsp; This worked for me!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1297276#M49820</guid>
      <dc:creator>FavaN2021</dc:creator>
      <dc:date>2023-06-08T17:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Month and Year in Power Automate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1346697#M52703</link>
      <description>&lt;P&gt;I have the same issue, for some reason it is not working for me! Could you send me screenshots of your steps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 14:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1346697#M52703</guid>
      <dc:creator>KDHEITGIS</dc:creator>
      <dc:date>2023-11-07T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Month and Year in Power Automate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1383599#M54851</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573013"&gt;@beachcamp&lt;/a&gt;&amp;nbsp;, I'm using this expression, but the date I'm getting (August 28, 5217) is not what is should be (February 16, 2024). Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheGeneralissimo_0-1708112818661.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95070i522DEF15DF7FA3F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheGeneralissimo_0-1708112818661.png" alt="TheGeneralissimo_0-1708112818661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:47:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/converting-month-and-year-in-power-automate/m-p/1383599#M54851</guid>
      <dc:creator>TheGeneralissimo</dc:creator>
      <dc:date>2024-02-16T19:47:51Z</dc:date>
    </item>
  </channel>
</rss>

