<?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: Dateformat on infowindow in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422598#M38885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea i read all of those already and i have tried but nothing came out of that XD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 19:52:11 GMT</pubDate>
    <dc:creator>EvelynHernandez</dc:creator>
    <dc:date>2018-02-01T19:52:11Z</dc:date>
    <item>
      <title>Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422585#M38872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have the following question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i set up a dateformat for a infowindow? Right now my problem is the infowindow is showing a incorrect timezone, (-3 hr to my current timezone), so i need to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;let&lt;/SPAN&gt; chInfoTemp&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;InfoTemplate&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;
 chInfoTemp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setTitle&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;lt;b&amp;gt;Current:&amp;lt;/b&amp;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="keyword token"&gt;let&lt;/SPAN&gt; chInfoContent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"&amp;lt;div style=padding-top: 10px;&amp;gt;&amp;lt;b&amp;gt;Starting: &amp;lt;/b&amp;gt; ${initial_date:DateFormat(datePattern:'d MMMM yyyy, HH:mm:ss.', selector:'date')}&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"&amp;lt;div style=padding-top: 10px;&amp;gt;&amp;lt;b&amp;gt;Final:&amp;lt;/b&amp;gt; ${er:DateFormat(datePattern:'d MMMM yyyy, HH:mm:ss.', selector:'date')}&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 chInfoTemp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setContent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;chInfoContent&lt;SPAN class="punctuation token"&gt;)&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:05:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422585#M38872</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2021-12-11T19:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422586#M38873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evelyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is a setting in ArcGIS Server manger that will help for this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/394953_Untitled-1.jpg" style="width: 620px; height: 320px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422586#M38873</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-26T13:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422587#M38874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh im going to try that, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422587#M38874</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2018-01-26T13:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422588#M38875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh wait, mine doesnt have that option!&amp;nbsp;&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/394891_pastedImage_1.png" style="width: 620px; height: 337px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:42:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422588#M38875</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2018-01-26T13:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422589#M38876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evelyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Then you are running an older ArcGIS Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422589#M38876</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-26T13:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422590#M38877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So there is another option to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422590#M38877</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2018-01-26T13:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422591#M38878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See these threads:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/91407"&gt;Specify TimeZone for popups/attributes in arcgisonline maps&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/163168"&gt;Feature service date field is a day off&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422591#M38878</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-26T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422592#M38879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks im going to look at it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 14:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422592#M38879</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2018-01-26T14:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422593#M38880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evelyn, here's something we used back at 3.14:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;convertDate &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jsDate&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;//console.log(jsDate);&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; myDate &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; locale&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;format&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;abs&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jsDate &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14400000&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;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selector&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"date"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datePattern&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'MMMM d, yyyy'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;//console.log(Math.abs(jsDate + 14400000));&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; myDate&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="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then in my popup template description I'd just set the function:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; popup &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;PopupTemplate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"My Title"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;lt;b&amp;gt;Account:&amp;lt;/b&amp;gt; {ACCOUNT}"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Date:&amp;lt;/b&amp;gt; {SomeDate:converDate}"&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="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constant value you see is for EST, so you'll have to play with that to get your time zone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:05:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422593#M38880</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-12-11T19:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422594#M38881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit; font-size: 15px;"&gt;14400000&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN style="font-size: 14.0pt; color: #1f497d;"&gt; is 4 hrs?&lt;BR /&gt;Im right now in gmt -3 , and another thing i want to ask you is u are using dojo.locale, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now im not using popuptemplate, im using infotemplate, so the code that&amp;nbsp; i have is the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; convertDate &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jsDate&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jsDate&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; myDate &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; locale&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;format&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;abs&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jsDate &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;108000000&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;
 selector&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"date"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 datePattern&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'d/MMMM/yyyy HH:MM:SS'&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;
 console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;abs&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jsDate &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14400000&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="keyword token"&gt;return&lt;/SPAN&gt; myDate&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="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;let&lt;/SPAN&gt; chqInfoContent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"&amp;lt;div style=padding-top: 10px;&amp;gt;&amp;lt;b&amp;gt;Time&amp;nbsp; &amp;lt;/b&amp;gt; ${initialDate:convertDate}&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"&amp;lt;div style=padding-top: 10px;&amp;gt;&amp;lt;b&amp;gt;ETR:&amp;lt;/b&amp;gt; ${ETR:convertDate}&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;"&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And the resolution that i have is showing me the infoWindowin milliseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt; color: #1f497d;"&gt;Thanks for ur help!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422594#M38881</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2021-12-11T19:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422595#M38882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think so yes, I believe at the time we were accounting for EDT vs GMT and yes I think we required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"dojo/date/locale" aliased as locale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422595#M38882</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2018-02-01T19:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422596#M38883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now if i dont place a dateFormat, they will show the correct datetime on the infoTemplate each time i click a feature. The thing is the format is in English, and i really need to have&amp;nbsp; it in Spanish and in this way : d/MM/yyyy HH:MM:ss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u know any fix for that? Because when i use the dateFormatter like this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #4d4d4d; background: #fafafa; border: 2px solid #dddddd; margin: 1em 0px 0px; padding: 0.5em 0px 0.5em 0.5em;"&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;${Date_:DateFormat(datePattern:'d/MM/yyyy HH:MM:ss', selector:'date')}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will change the format to the desired one in spanish, but it will drop -3hrs to the current date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422596#M38883</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2018-02-01T19:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422597#M38884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't, but I'd say go into the dojoToolkit:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://dojotoolkit.org/reference-guide/1.10/dojo/date/locale/format.html" title="https://dojotoolkit.org/reference-guide/1.10/dojo/date/locale/format.html"&gt;dojo/date/locale::format() — The Dojo Toolkit - Reference Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and see what you can come up with&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422597#M38884</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2018-02-01T19:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422598#M38885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea i read all of those already and i have tried but nothing came out of that XD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422598#M38885</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2018-02-01T19:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dateformat on infowindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422599#M38886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah sorry i don't how to account for that then, there's probably a way to set the constant value to account for that but i don't know what that would be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dateformat-on-infowindow/m-p/422599#M38886</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2018-02-01T19:58:37Z</dc:date>
    </item>
  </channel>
</rss>

