<?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: Date format issue after upgrading from 10.1 to 10.2 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391175#M15167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When StandardizedQueries is enabled, internally a standardizedQuery-function gets converted to a database-specific-function before the modified query gets sent to the database to process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know which Oracle functions, DATE and TIMESTAMP are mapped to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 17:58:38 GMT</pubDate>
    <dc:creator>TanuHoque</dc:creator>
    <dc:date>2013-10-11T17:58:38Z</dc:date>
    <item>
      <title>Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391169#M15161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just upgraded ArcGIS for Server 10.1 to ArcGIS for Server 10.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before the upgrade, date fields in my MapServices response were like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;"SAMPLING_DATE" : "1/5/2011 12:00:00 AM"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now, with 10.2, they are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;"SAMPLING_DATE" : 1294185600000&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of my web applications, to filter the feature displayed on maps, performs queries sending parameters about dates, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SAMPLING_DATE &amp;gt;= TO_DATE('01/01/2010','DD/MM/YYYY') AND SAMPLING_DATE &amp;lt;= TO_DATE('10/10/2013','DD/MM/YYYY')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now similar queries do not work and the rest endpoint returns "Unable to complete operation".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I query date fields now in 10.2 and (better) how can I have date fields again as they were in 10.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 13:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391169#M15161</guid>
      <dc:creator>AlessioDi_Lorenzo</dc:creator>
      <dc:date>2013-10-10T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391170#M15162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got how to query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;no more:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= TO_DATE('01/01/2010','DD/MM/YYYY') AND SAMPLING_DATE &amp;lt;= TO_DATE('10/10/2013','DD/MM/YYYY')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= TIMESTAMP '01/01/2010' AND SAMPLING_DATE &amp;lt;= TIMESTAMP '10/10/2013'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This query works properly and I hope this helps, but I still have twoo questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I'm using date strings in DD/MM/YYYY format and I noticed this format works (the query return the correct results). How about changing the date format to MM/DD/YYYY? Is there a way to specify it in the TIMESTAMP function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If I run a test query inside the ReST panel - without using the javascript web app that formats the results client side - the value of the SAMPLING_DATE field is in milliseconds. Can I apply the TIMESTAMP function in the outFields field to format the answer in something more human-readable? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 16:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391170#M15162</guid>
      <dc:creator>AlessioDi_Lorenzo</dc:creator>
      <dc:date>2013-10-10T16:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391171#M15163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;starting at 10.2, by default you can't pass in any database specific query function while querying a layer from a service. your query must conform to the StandardizedQueries specs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/About_standardized_queries/015400000641000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/About_standardized_queries/015400000641000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) syntax for TIMESTAMP is actually &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;timestamp 'yyyy-mm-dd hh:mm:ss'&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Supported_SQL_functions_in_ArcGIS_Server/015400000686000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Supported_SQL_functions_in_ArcGIS_Server/015400000686000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) nope, i don't think so.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391171#M15163</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-10-11T14:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391172#M15164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the answer mahoque.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May you provide me with an example of a standardized query filtering data by date explicitly formatted as dd/mm/yyyy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Oracle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by disabling the standardized query support as explained in the documentation my TO_DATE query &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= TO_DATE('01/01/2010','DD/MM/YYYY') AND SAMPLING_DATE &amp;lt;= TO_DATE('10/10/2013','DD/MM/YYYY')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will work again?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 15:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391172#M15164</guid>
      <dc:creator>AlessioDi_Lorenzo</dc:creator>
      <dc:date>2013-10-11T15:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391173#M15165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, just realized you can use either DATE or TIMESTAMP keyword.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is 2 examples:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= DATE '2010-01-01' AND SAMPLING_DATE &amp;lt;= DATE '2013-10-10'&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= TIMESTAMP '2010-01-01 00:00:00 AM' AND SAMPLING_DATE &amp;lt;= TIMESTAMP '2013-10-10 00:00:00 AM'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, you are right, by disabling StandardizedQueries you can pass in any database specific (in your case Oracle) functions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 15:58:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391173#M15165</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-10-11T15:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391174#M15166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does that mean it's possible to query using the TIMESTAMP keyword even if the data is stored in Oracle as a DATE datatype?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 17:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391174#M15166</guid>
      <dc:creator>MattRohlf1</dc:creator>
      <dc:date>2013-10-11T17:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391175#M15167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When StandardizedQueries is enabled, internally a standardizedQuery-function gets converted to a database-specific-function before the modified query gets sent to the database to process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know which Oracle functions, DATE and TIMESTAMP are mapped to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 17:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391175#M15167</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-10-11T17:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391176#M15168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Oh, just realized you can use either DATE or TIMESTAMP keyword.&lt;BR /&gt;&lt;BR /&gt;here is 2 examples:&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= DATE '2010-01-01' AND SAMPLING_DATE &amp;lt;= DATE '2013-10-10'&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= TIMESTAMP '2010-01-01 00:00:00 AM' AND SAMPLING_DATE &amp;lt;= TIMESTAMP '2013-10-10 00:00:00 AM'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;yes, you are right, by disabling StandardizedQueries you can pass in any database specific (in your case Oracle) functions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mahoque,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as I wrote in my second post, I used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SAMPLING_DATE &amp;gt;= TIMESTAMP 'dd/mm/yyyy' AND SAMPLING_DATE &amp;lt;= TIMESTAMP 'dd/mm/yyyy'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;STRONG&gt;it worked&lt;/STRONG&gt;&lt;SPAN&gt;, the results were correct. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the default CURRENT_TIMESTAMP (or CURRENT_DATE) format in my case &lt;/SPAN&gt;&lt;STRONG&gt;seems&lt;/STRONG&gt;&lt;SPAN&gt; to be dd/mm/yyyy and NOT yyyy-mm-dd. My questions now are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Does it depend on the browser language or on the oracle server settings or what else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) How can I ask for dates or timestamps using a different format? Disabling standardized queries is the only way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 08:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391176#M15168</guid>
      <dc:creator>AlessioDi_Lorenzo</dc:creator>
      <dc:date>2013-10-12T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue after upgrading from 10.1 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391177#M15169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) I believe that depends on Oracle settings. the StandardizedQueries recommends that to make it work across all databases. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is the main idea behind StandardizedQueries, so that the end user does not need to worry about the underlying database's flavor - the end user writes a sql query following StandardizedQueries specs, and ArcGIS Server converts that to an appropriate sql statement conforming to the underlying database's syntax etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) StandardizedQueries syntax doesn't allow to specify dateformat, so you are right, the only option you are left with is to disable StandardizedQueries, if it is absolutely necessary to specify the dateformat in the query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 15:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/date-format-issue-after-upgrading-from-10-1-to-10/m-p/391177#M15169</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-10-14T15:40:40Z</dc:date>
    </item>
  </channel>
</rss>

