<?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: esriFieldTypeDate field - Query Builder SFV 1.3 in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/esrifieldtypedate-field-query-builder-sfv-1-3/m-p/237061#M5584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was this question ever resolved?&amp;nbsp; I have a similar issue in SQL SDE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Oct 2010 12:48:47 GMT</pubDate>
    <dc:creator>MelissaPrindiville</dc:creator>
    <dc:date>2010-10-26T12:48:47Z</dc:date>
    <item>
      <title>esriFieldTypeDate field - Query Builder SFV 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/esrifieldtypedate-field-query-builder-sfv-1-3/m-p/237060#M5583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My map service layer has several esriFieldTypeDate fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I query in ArcMap, the format returned in Select by attriburtes is this: &lt;/SPAN&gt;&lt;STRONG&gt;TO_DATE('2024-12-31 00:00:00','YYYY-MM-DD HH24:MI:SS')&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;as the data resides in Oracle SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The actual records look like this: &lt;/SPAN&gt;&lt;STRONG&gt;01/12/1989&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I go to query these fields in the SFV 1.3 query builder, the returned format looks like this: &lt;/SPAN&gt;&lt;STRONG&gt;12/31/2020 12:00:00 AM&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and I get an error message "query failed!'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas what need to be fixed/changed? I have attached a few graphics to illustrate my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The AGREEMENT_END_DATE = TO_DATE('2019-12-31 00:00:00','YYYY-MM-DD HH24:MI:SS') query works fine in ArcMap and the REST map service query layer function. Not sure why I get&amp;nbsp; AGREEMENT_END_DATE = '12/31/2020 12:00:00 AM' when I use this field in the query builder (SFV 1.3) widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Susan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 19:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/esrifieldtypedate-field-query-builder-sfv-1-3/m-p/237060#M5583</guid>
      <dc:creator>SusanMordy1</dc:creator>
      <dc:date>2010-06-10T19:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: esriFieldTypeDate field - Query Builder SFV 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/esrifieldtypedate-field-query-builder-sfv-1-3/m-p/237061#M5584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was this question ever resolved?&amp;nbsp; I have a similar issue in SQL SDE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 12:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/esrifieldtypedate-field-query-builder-sfv-1-3/m-p/237061#M5584</guid>
      <dc:creator>MelissaPrindiville</dc:creator>
      <dc:date>2010-10-26T12:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: esriFieldTypeDate field - Query Builder SFV 1.3</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/esrifieldtypedate-field-query-builder-sfv-1-3/m-p/237062#M5585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: violet559&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not figure this out myself (ran out of time), but I have posted the response I received from ESRI techincal support regarding this issue. Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;****************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Query Builder widget is essentially just a form, it has no idea what&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the DBMS management system is.&amp;nbsp; What you type into the Filter box is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just passed to the server as a request.&amp;nbsp; The server then passes that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string to the DBMS.&amp;nbsp; Thus that string, MUST match the syntax&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;requirements of the DBMS.&amp;nbsp; I was only suggesting that you use ArcMap in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;order to understand what the syntax requirements are for ORACLE.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you really need is to add intermediate code that translates a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;simple date entered by the user into what ORACLE needs.&amp;nbsp; This will&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;require customization however.&amp;nbsp; Here is a link that has some code to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;help you get started. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On an aside, the the reason why your date of 12/31/2020 comes up as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12/31/2020 12:00:00 AM in ORACLE is because all Date field have a time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and 12:00:00 AM is the default time that ORACLE sets when none is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;specified.&amp;nbsp; The time portion of the date field is not seen by default in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcMap.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more info on this please see the section OS Date and Times at the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;following page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;033000000.htm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 15:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/esrifieldtypedate-field-query-builder-sfv-1-3/m-p/237062#M5585</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-10-26T15:14:26Z</dc:date>
    </item>
  </channel>
</rss>

