<?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 Date Field Question in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/date-field-question/m-p/674673#M15147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a column that has a date field of mm/dd/yyyy.&amp;nbsp; When I publish this data to a map service, the date field changes to add i.e. Wed, Sep 30 2010 06:30 p.m.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I change the date settings to not display the long form time format from my OS?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 15:45:31 GMT</pubDate>
    <dc:creator>AlexSanders</dc:creator>
    <dc:date>2011-06-06T15:45:31Z</dc:date>
    <item>
      <title>Date Field Question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/date-field-question/m-p/674673#M15147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a column that has a date field of mm/dd/yyyy.&amp;nbsp; When I publish this data to a map service, the date field changes to add i.e. Wed, Sep 30 2010 06:30 p.m.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I change the date settings to not display the long form time format from my OS?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 15:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/date-field-question/m-p/674673#M15147</guid>
      <dc:creator>AlexSanders</dc:creator>
      <dc:date>2011-06-06T15:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field Question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/date-field-question/m-p/674674#M15148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need a DateFormatter. Depending if you are using a LabelFunction or an ItemRenderer, you could return it a couple of ways, but it could look like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
myGrid.labelFunction = labelFunction

private function labelFunction(item:Object, column:DataGridColumn):String
{
 var field:String = column.dataField;
 if ("Date" == field)
 {
&amp;nbsp; var d:Date = new Date(item[field]);
&amp;nbsp; return formatDate(d);
 }
 else
&amp;nbsp; // return some other stuff for other columns
}
private function formatDate(date:Date):String
{
 if (date)
 {
&amp;nbsp; var df:DateFormatter = new DateFormatter();
&amp;nbsp; df.formatString = "MM/DD/YYYY";
&amp;nbsp; return df.format(date);
 }
 else
&amp;nbsp; return "None";
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/date-field-question/m-p/674674#M15148</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-12T04:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field Question</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/date-field-question/m-p/674675#M15149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked perfectly thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 19:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/date-field-question/m-p/674675#M15149</guid>
      <dc:creator>AlexSanders</dc:creator>
      <dc:date>2011-06-06T19:53:10Z</dc:date>
    </item>
  </channel>
</rss>

