<?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 to add current date to config.xml in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358735#M10112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;=GetDate()�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;='GetDate()'�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;= + 'GetDate()'�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&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;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;= + GetDate()�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None of these combinations work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 18:00:41 GMT</pubDate>
    <dc:creator>RuyMartinez</dc:creator>
    <dc:date>2011-07-21T18:00:41Z</dc:date>
    <item>
      <title>How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358733#M10110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to add the current date and add it to a query in the config.xml file for the flex viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works without any problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;layer label=???My Date Layer??? type=???feature??? visible=???true??? url=???http://server/arcgis/rest/services/datelayer/FeatureServer/1??? definitionexpression=???date&amp;gt;=???07/21/2011??????/&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;layer label=???My Date Layer??? type=???feature??? visible=???true??? url=???http://server/arcgis/rest/services/datelayer/FeatureServer/1??? definitionexpression=???date&amp;gt;=CURRENT_DATE??? /&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else done something like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ruy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358733#M10110</guid>
      <dc:creator>RuyMartinez</dc:creator>
      <dc:date>2011-07-21T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358734#M10111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ruy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Have you tried GetDate()?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 17:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358734#M10111</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-21T17:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358735#M10112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;=GetDate()�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;='GetDate()'�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;= + 'GetDate()'�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&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;&amp;lt;layer label=�?�My Date Layer�?� type=�?�feature�?� visible=�?�true�?� url=�?�http://server/arcgis/rest/services/datelayer/FeatureServer/1�?� definitionexpression=�?�date&amp;gt;= + GetDate()�?�/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None of these combinations work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 18:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358735#M10112</guid>
      <dc:creator>RuyMartinez</dc:creator>
      <dc:date>2011-07-21T18:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358736#M10113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ruy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; What is the underling data for this featureService in (SDE SQL Server or Oracle, Shapefile, FDGB, what)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 18:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358736#M10113</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-21T18:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358737#M10114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SDE SQL SERVER&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 18:32:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358737#M10114</guid>
      <dc:creator>RuyMartinez</dc:creator>
      <dc:date>2011-07-21T18:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358738#M10115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ruy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; OK, CURRENT_DATE keyword is suppose to be supported.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 18:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358738#M10115</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-21T18:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358739#M10116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to thank you for taking the time to help me out.&amp;nbsp; I'm still stuck on the syntax.&amp;nbsp; Here are the latest attempts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;definitionexpression=�?�date&amp;gt;=CURRENT_DATE�?�
definitionexpression=�?�date&amp;gt;=CURRENT_DATE()�?�
definitionexpression=�?�date&amp;gt;= + 'CURRENT_DATE'�?�
definitionexpression=�?�date&amp;gt;= + 'CURRENT_DATE()'�?�&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have to format the date before I send it in the query?&amp;nbsp; I'm not sure what else to try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ruy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358739#M10116</guid>
      <dc:creator>RuyMartinez</dc:creator>
      <dc:date>2021-12-11T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add current date to config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358740#M10117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay I finally go something to work!&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;definitionexpression="date&amp;gt;= DATEADD(d, DATEDIFF(d,0,GETDATE(),0)"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the answer &lt;/SPAN&gt;&lt;A href="http://www.bigresource.com/Tracker/Track-ms_sql-U0ogbcdf/"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help on this Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ruy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 19:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-add-current-date-to-config-xml/m-p/358740#M10117</guid>
      <dc:creator>RuyMartinez</dc:creator>
      <dc:date>2011-07-21T19:07:11Z</dc:date>
    </item>
  </channel>
</rss>

