<?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 Convert a time field to UTC inside of a pop-up in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145369#M76387</link>
    <description>&lt;P&gt;Working on an issue with an incorrectly displayed time field.&amp;nbsp; I need to a field from a rest service to UTC to get the correct date/time&amp;nbsp; (below should be 7/10/2020 12:00am).&amp;nbsp; &lt;EM&gt;I don't own the rest service or I would just change it there.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_0-1645131682675.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34276iD63A0148CBB16D8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_0-1645131682675.png" alt="RyanBohan_0-1645131682675.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_1-1645131828122.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34277i7CFB01BB7AFADEC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_1-1645131828122.png" alt="RyanBohan_1-1645131828122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried to use arcade, but because of the way I am building the pop-up, I am getting issues with the calculation.&lt;/P&gt;&lt;P&gt;Any help would be great, thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 21:19:06 GMT</pubDate>
    <dc:creator>RyanBohan</dc:creator>
    <dc:date>2022-02-17T21:19:06Z</dc:date>
    <item>
      <title>Convert a time field to UTC inside of a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145369#M76387</link>
      <description>&lt;P&gt;Working on an issue with an incorrectly displayed time field.&amp;nbsp; I need to a field from a rest service to UTC to get the correct date/time&amp;nbsp; (below should be 7/10/2020 12:00am).&amp;nbsp; &lt;EM&gt;I don't own the rest service or I would just change it there.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_0-1645131682675.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34276iD63A0148CBB16D8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_0-1645131682675.png" alt="RyanBohan_0-1645131682675.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_1-1645131828122.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34277i7CFB01BB7AFADEC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_1-1645131828122.png" alt="RyanBohan_1-1645131828122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried to use arcade, but because of the way I am building the pop-up, I am getting issues with the calculation.&lt;/P&gt;&lt;P&gt;Any help would be great, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 21:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145369#M76387</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2022-02-17T21:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a time field to UTC inside of a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145377#M76388</link>
      <description>&lt;P&gt;Can you describe which issues you're seeing with the UTC calculation in Arcade? Was this the expression you used?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ToUTC($feature.data_project_create)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 21:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145377#M76388</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-02-17T21:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a time field to UTC inside of a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145393#M76390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44467"&gt;@KristianEkenes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's very possible I am applying the arcade in the wrong way.&amp;nbsp; I am getting this in the pop-up&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_2-1645135842141.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34284iEFD521F815B232C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_2-1645135842141.png" alt="RyanBohan_2-1645135842141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_0-1645135300313.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34281i20350978789E6E7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_0-1645135300313.png" alt="RyanBohan_0-1645135300313.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_1-1645135783336.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34283i1E07D6B559E1C356/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_1-1645135783336.png" alt="RyanBohan_1-1645135783336.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 22:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145393#M76390</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2022-02-17T22:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a time field to UTC inside of a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145416#M76393</link>
      <description>&lt;P&gt;Ok. I see the issue, you'll need to reference the expression in an expressionInfos object, which will assign it a name. Then you need to refer to that name within the popup content in the following format: {expression/expression-name}. It's the same syntax as referring to field names except you need to prefix the expression name with "expression/".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_0-1645138560809.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34290i207ED8CD14938949/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_0-1645138560809.png" alt="KristianEkenes_0-1645138560809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_1-1645138573239.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34291i014DE5E8E853D3A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_1-1645138573239.png" alt="KristianEkenes_1-1645138573239.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_2-1645138597791.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34292i902CC8C8FB52128B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_2-1645138597791.png" alt="KristianEkenes_2-1645138597791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the live sample:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/popuptemplate-arcade/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/popuptemplate-arcade/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 22:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1145416#M76393</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-02-17T22:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a time field to UTC inside of a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1147591#M76474</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44467"&gt;@KristianEkenes&lt;/a&gt;&amp;nbsp;the screen shots and example are great and I got it working.&amp;nbsp; Thank for you help&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 16:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-a-time-field-to-utc-inside-of-a-pop-up/m-p/1147591#M76474</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2022-02-24T16:40:35Z</dc:date>
    </item>
  </channel>
</rss>

