<?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 for Field in Search Widget in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-for-field-in-search-widget/m-p/200999#M6273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the default Search Widget in Flex the data field can be displayed as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dateformat&lt;/EM&gt;—Format in which the date is displayed. Default is a full date and time in the user's locale using date.toLocaleString(). Example date formats include YYYYMMDD, MMMM, YYYY, J:NN:SS, EEEE, MMM. D, YYYY at L:NN:QQQ A. See &lt;A class="xref" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateFormatter.html#formatString" target="_blank"&gt;DateFormatter documentation&lt;/A&gt; for a full description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest trying MM/DD/YYYY to see if that works. Also, here is the documentation for the Search Widget - that may end up being helpful as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Search_widget_tags/01m300000023000000/" title="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Search_widget_tags/01m300000023000000/"&gt;ArcGIS Viewer for Flex&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 20:36:07 GMT</pubDate>
    <dc:creator>PhilipSlater</dc:creator>
    <dc:date>2015-04-27T20:36:07Z</dc:date>
    <item>
      <title>Date Format for Field in Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-for-field-in-search-widget/m-p/200998#M6272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am configuring the .xml code for the Search widget to work for my web app.&amp;nbsp; I need help formatting a Date field.&amp;nbsp; Inside the web app, it displays with the following format:&amp;nbsp; Day Month Date Year HH:MM:SS AM/PM (see snapshot below).&amp;nbsp; Essentially, I just want the short date format as shown: MM/DD/YYYY.&amp;nbsp; I do not need the time.&amp;nbsp;&amp;nbsp; I have tried the code shown below, but it does not truncate the date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;field name="INSTALLDATE" alias="Install Date"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;format precision="-1" usethousandsseparator="false" useutc="false" dateformat="M/D/YYYY"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/field&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what I need to change/add to get the format I want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SearchWidget_DateFormat.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/90907_SearchWidget_DateFormat.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 19:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-for-field-in-search-widget/m-p/200998#M6272</guid>
      <dc:creator>AlexanderMcKoy</dc:creator>
      <dc:date>2015-04-27T19:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format for Field in Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-for-field-in-search-widget/m-p/200999#M6273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the default Search Widget in Flex the data field can be displayed as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dateformat&lt;/EM&gt;—Format in which the date is displayed. Default is a full date and time in the user's locale using date.toLocaleString(). Example date formats include YYYYMMDD, MMMM, YYYY, J:NN:SS, EEEE, MMM. D, YYYY at L:NN:QQQ A. See &lt;A class="xref" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateFormatter.html#formatString" target="_blank"&gt;DateFormatter documentation&lt;/A&gt; for a full description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest trying MM/DD/YYYY to see if that works. Also, here is the documentation for the Search Widget - that may end up being helpful as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Search_widget_tags/01m300000023000000/" title="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Search_widget_tags/01m300000023000000/"&gt;ArcGIS Viewer for Flex&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 20:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-for-field-in-search-widget/m-p/200999#M6273</guid>
      <dc:creator>PhilipSlater</dc:creator>
      <dc:date>2015-04-27T20:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format for Field in Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-for-field-in-search-widget/m-p/201000#M6274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I needed to remove some of the unnecessary code, but once this was done, the "dateformat" tag worked with the formatting exactly as you described.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:01:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-for-field-in-search-widget/m-p/201000#M6274</guid>
      <dc:creator>AlexanderMcKoy</dc:creator>
      <dc:date>2015-04-29T13:01:54Z</dc:date>
    </item>
  </channel>
</rss>

