<?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: How do you get a date query to work? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567047#M15149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Continued musings on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to query not using a between operator and using an "is on" fails.&amp;nbsp; So does the Is on "date" operator fail because the data is being collected with time?&amp;nbsp; Must you always use a between statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is there anyway to query date is equal to today's date.(getdate)&amp;nbsp; so that the map is dynamic for each day its opened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find this works better with operations dashboard having an "is within" operator when you select a relative date but still not the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I don't have any options for modifying or hosting my own application, I can only work withing the out of the box AGOL environment at this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2014 21:59:49 GMT</pubDate>
    <dc:creator>AndrewWolff1</dc:creator>
    <dc:date>2014-10-23T21:59:49Z</dc:date>
    <item>
      <title>How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567043#M15145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a date field in my hosted feature service that is being collected through the collector app.&amp;nbsp; I'm trying to build a query in the Web AppBuilder that selects records from a specific day however the query fails when the input is a date..&amp;nbsp; If I query date is blank or not blank it works fine.&amp;nbsp;&amp;nbsp; Has anyone been able to create successful query based on date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 14:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567043#M15145</guid>
      <dc:creator>AndrewWolff1</dc:creator>
      <dc:date>2014-10-09T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567044#M15146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Here is what a working date query looks like for me in the json file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Begin_Date_Occ BETWEEN timestamp '2014-10-15 00:00:00' AND timestamp '2014-10-15 23:59:59'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567044#M15146</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-15T12:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567045#M15147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was hoping someone could tell me how to configure the GUI box within the app builder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 19:40:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567045#M15147</guid>
      <dc:creator>AndrewWolff1</dc:creator>
      <dc:date>2014-10-23T19:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567046#M15148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In Beta 3 all you do is choose your date field, then operator "is between" and then set the beginning and ending date selector fields. I just tested this against a layer in my map that has a date field and it worked great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 19:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567046#M15148</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-23T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567047#M15149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Continued musings on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to query not using a between operator and using an "is on" fails.&amp;nbsp; So does the Is on "date" operator fail because the data is being collected with time?&amp;nbsp; Must you always use a between statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is there anyway to query date is equal to today's date.(getdate)&amp;nbsp; so that the map is dynamic for each day its opened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find this works better with operations dashboard having an "is within" operator when you select a relative date but still not the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I don't have any options for modifying or hosting my own application, I can only work withing the out of the box AGOL environment at this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 21:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567047#M15149</guid>
      <dc:creator>AndrewWolff1</dc:creator>
      <dc:date>2014-10-23T21:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567048#M15150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also having an issue using the Query Tasks Widget for the Web AppBuilder in ArcGIS online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've collected data via the Collector tool and that data is hosted as as feature service on AGOL. When trying to search by the CreationDate (Date) field with any of the operators I get a query failed message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Troy Proctor &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567048#M15150</guid>
      <dc:creator>TroyProctor</dc:creator>
      <dc:date>2014-11-12T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567049#M15151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how to fix this, but I'm not sure it's a good idea. The problem is that the query is created like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myDate &amp;gt; timestamp '2014-11-28 23:59:59'&lt;/P&gt;&lt;P&gt;*or*&lt;/P&gt;&lt;P&gt;myDate &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BETWEEN timestamp '2014-11-28 00:00:00' AND timestamp '2014-11-30 23:59:59'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The file webappviewer/jimu.js/main.js constructs the query and inserts "timestamp" via the following condition:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(this.isHosted?"":"timestamp ")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;... which likely messes up those of us hosting, because th&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ese queries work just fine:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;myDate &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BETWEEN '2014-11-28 00:00:00' AND '2014-11-30 23:59:59'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;myDate &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BETWEEN '2014-11-28' AND '2014-11-30'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;myDate &amp;gt; '2014-11-28'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;You can test this with your REST url query tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;IMG alt="Screen Shot 2014-11-29 at 9.33.17 AM.png" class="jive-image image-1" src="/legacyfs/online/35699_Screen Shot 2014-11-29 at 9.33.17 AM.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I modified the main.js file and removed all instances of timestamp for all date operators, and it all works. However, I recognize the intent of the query structure to avoid hassles with timezones etc. and I'm not sure why it causes issues. Anyone have a better way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Jacqueline Wilson&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2014 14:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567049#M15151</guid>
      <dc:creator>JacquelineWilson</dc:creator>
      <dc:date>2014-11-29T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567050#M15152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacqueline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip. This issue continues to exist in a WAB 1.1 when talking to a ArcGIS Server 10.2.2 endpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to fix it by removing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + (this.isHosted ? "" : "timestamp ")&amp;nbsp;&amp;nbsp; from the filterUtils.js file in the jims.js folder of your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 20:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567050#M15152</guid>
      <dc:creator>SubuSwaminathan1</dc:creator>
      <dc:date>2015-07-02T20:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567051#M15153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im also having troubles with date in query widget. Im using WAB developer edition 1.3 and Im querying a date field in data exposed by a FS. It all works fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT - &lt;SPAN style="line-height: 1.5;"&gt;The date in the query widget UI is defaulting to the date I CONFIGURED the widget i WAB which is highly irrelevant..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I change this behaviour of the date picker to default to TODAYS DATE (whenever I run a query)?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;/Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 13:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567051#M15153</guid>
      <dc:creator>ErikLanhammar</dc:creator>
      <dc:date>2016-01-07T13:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567052#M15154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This would require changing code in the stemApp or just your specific app if you only need this change for that one app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open&lt;/P&gt;&lt;P&gt;[install dir]\client\stemapp\jimu.js\dijit\_SingleFilterParameter.js&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;[install dir]\server\apps\[app#]\jimu.js\dijit\_SingleFilterParameter.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And find this line:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14521769690159252 jive_text_macro" data-renderedposition="218_8_912_16" jivemacro_uid="_14521769690159252"&gt;&lt;P&gt;this.dateTextBox.set('value', new Date(valueObj.value));&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;and change it to:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14521769979336684 jive_text_macro" data-renderedposition="255_8_912_16" jivemacro_uid="_14521769979336684"&gt;&lt;P&gt;this.dateTextBox.set('value', new Date());&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 14:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567052#M15154</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-07T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567053#M15155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, you made my day!!! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brgds,&lt;/P&gt;&lt;P&gt;/Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 15:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567053#M15155</guid>
      <dc:creator>ErikLanhammar</dc:creator>
      <dc:date>2016-01-07T15:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567054#M15156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Robert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk again for the fix - it works great in WAB13. I cant make it work in WAB11 though. Looked up the code in _SingelFilter.js, line 812 and changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.dateTextBox.set('value', new Date(valueObj.value));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.dateTextBox.set('value', new Date());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...but date in query widget still defaults to the config date, not todays...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion on how I can make it work in WAB11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BRgds,&lt;/P&gt;&lt;P&gt;/Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567054#M15156</guid>
      <dc:creator>ErikLanhammar</dc:creator>
      <dc:date>2016-01-25T16:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567055#M15157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In 1.1 you need to change the _buildDate function in the SingleParameter.js file (line 24 &amp;amp; 25):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;_buildDate: function(fieldInfo, part){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*jshint unused: false*/
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setStyle(this.stringTextBoxContainer,'display','none');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setStyle(this.numberTextBoxContainer,'display','none');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setStyle(this.dateTextBoxContainer,'display','block');

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fieldObj = part.fieldObj;//name,shortType
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var valueObj = part.valueObj;//value,value1,value2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var operator = part.operator;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var isDateBetween = operator === this.OPERATORS.dateOperatorIsBetween;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var isDateNotBetween = operator === this.OPERATORS.dateOperatorIsNotBetween;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var isRange = isDateBetween || isDateNotBetween;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isRange){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._type = 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setStyle(this.dateRangeTable,'display','table');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._hideDijit(this.dateTextBox);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dateTextBox1.set('value', new Date(valueObj.value1));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dateTextBox2.set('value', new Date(valueObj.value2));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._type = 1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setStyle(this.dateRangeTable,'display','none');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._showDijit(this.dateTextBox);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this.dateTextBox.set('value', new Date(valueObj.value));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.dateTextBox.set('value', new Date());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567055#M15157</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T00:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567056#M15158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, will try this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;/Erik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25 jan. 2016 kl. 17:36 skrev Robert Scheitlin, GISP &amp;lt;geonet@esri.com&amp;lt;mailto:geonet@esri.com&amp;gt;&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you get a date query to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Robert Scheitlin, GISP&amp;lt;https://community.esri.com/people/rscheitlin?et=watches.email.thread&amp;gt; in Web AppBuilder for ArcGIS - View the full discussion&amp;lt;https://community.esri.com/message/582916?et=watches.email.thread#582916&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567056#M15158</guid>
      <dc:creator>ErikLanhammar</dc:creator>
      <dc:date>2016-01-25T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567057#M15159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌ - do you know in what file to make this update in 2.3?&amp;nbsp; I'm either not seeing the files you mentioned above or don't see those lines of code within the same files.&amp;nbsp; I'm sure the structure has changed since 1.1 and 1.2.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify, what I'm trying to set up is the second date below is always the present or previous day. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/345334_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 20:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567057#M15159</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2017-04-04T20:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567058#M15160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is an old post, but I am experiencing the same issue. However I am a noob with&amp;nbsp;web mapping applications,&amp;nbsp;but tying to learn. I am able to download the web map application to my desktop as a zip file from arconline&amp;nbsp;and modify the code as you suggest, but I am not seeing how to re upload it except to host it, is that what you are doing or is there a way to upload the web mapping application to ArcGIS online, or at least the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx,&lt;/P&gt;&lt;P&gt;tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 14:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567058#M15160</guid>
      <dc:creator>timbrown3</dc:creator>
      <dc:date>2017-06-21T14:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a date query to work?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567059#M15161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Once a code change is made then there is not way to upload the app back to AGOL. You would have to host the app on your own web server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 15:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-a-date-query-to-work/m-p/567059#M15161</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-21T15:57:11Z</dc:date>
    </item>
  </channel>
</rss>

