<?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: Is there any way to remove the time value from Query widget results? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-there-any-way-to-remove-the-time-value-from/m-p/693270#M18311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure you can change this if you are using WAB Developer. Go to the jimu.js folder and open the utils.js and change the mo._tryLocaleDate funtion to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; mo._tryLocaleDate = function(date) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = mo.localizeDate(date,{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selector: "date",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatLength: "medium"
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = date.toLocaleDateString();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;
&amp;nbsp; };&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:10:12 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-12T05:10:12Z</dc:date>
    <item>
      <title>Is there any way to remove the time value from Query widget results?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-there-any-way-to-remove-the-time-value-from/m-p/693269#M18310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some data which have Date attributes. I can carry out a successful Date Query e.g. find items with a date between xxx and yyy. However, the results always show a time as well as the date. Is there anyway to get the times not to show? I'm assuming that it's some kind of UTC thing going on. The pop-up works just fine - showing the date and no time. However, the Query result is really annoying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 07:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-there-any-way-to-remove-the-time-value-from/m-p/693269#M18310</guid>
      <dc:creator>PeterSmith3</dc:creator>
      <dc:date>2016-03-04T07:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove the time value from Query widget results?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-there-any-way-to-remove-the-time-value-from/m-p/693270#M18311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure you can change this if you are using WAB Developer. Go to the jimu.js folder and open the utils.js and change the mo._tryLocaleDate funtion to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; mo._tryLocaleDate = function(date) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = mo.localizeDate(date,{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selector: "date",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatLength: "medium"
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = date.toLocaleDateString();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;
&amp;nbsp; };&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:10:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-there-any-way-to-remove-the-time-value-from/m-p/693270#M18311</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T05:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove the time value from Query widget results?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-there-any-way-to-remove-the-time-value-from/m-p/693271#M18312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Looks like I'm going to have to learn something new.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 23:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-there-any-way-to-remove-the-time-value-from/m-p/693271#M18312</guid>
      <dc:creator>PeterSmith3</dc:creator>
      <dc:date>2016-03-06T23:29:13Z</dc:date>
    </item>
  </channel>
</rss>

