<?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 Unable to Format FeatureTable Date in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-format-featuretable-date/m-p/1249770#M79968</link>
    <description>&lt;P&gt;I created a FeatureTable containing some points that I added to my map, but I am unable to change the format of the "date" field of type=date from the 13-digit Epoch time to MMDDYYYY or any other format. I've tried to use FeatureTable.dateOptions with no success.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dle13_0-1674173049005.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60803iB06D66A94B1FE167/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dle13_0-1674173049005.png" alt="dle13_0-1674173049005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the date field shown in the online Map Viewer that I used to create some points:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dle13_1-1674173287096.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60804i454B388108C17F58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dle13_1-1674173287096.png" alt="dle13_1-1674173287096.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Snippet of my FeatureTable code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureTable = new FeatureTable({
    view: view,
    layer: featureLayer,
    tableTemplate: {
        columnTemplates: [
            {
                type: "field",
                fieldName: "date",
                label: "DATE",
                direction: "asc"
            },
            {
                type: "field",
                fieldName: "title",
                label: "TITLE"
            },
            {
                type: "field",
                fieldName: "notes",
                label: "NOTES"
            },
            {
                type: "field",
                fieldName: "street",
                label: "ADDRESS"
            }
        ]
    },
    dateOptions: {
        timeEnabled: true,
        datePattern: "MM dd y"
    },
    container: "tableDiv"
});&lt;/LI-CODE&gt;&lt;P&gt;Any help would be appreciated. Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 00:10:55 GMT</pubDate>
    <dc:creator>dle13</dc:creator>
    <dc:date>2023-01-20T00:10:55Z</dc:date>
    <item>
      <title>Unable to Format FeatureTable Date</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-format-featuretable-date/m-p/1249770#M79968</link>
      <description>&lt;P&gt;I created a FeatureTable containing some points that I added to my map, but I am unable to change the format of the "date" field of type=date from the 13-digit Epoch time to MMDDYYYY or any other format. I've tried to use FeatureTable.dateOptions with no success.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dle13_0-1674173049005.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60803iB06D66A94B1FE167/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dle13_0-1674173049005.png" alt="dle13_0-1674173049005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the date field shown in the online Map Viewer that I used to create some points:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dle13_1-1674173287096.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60804i454B388108C17F58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dle13_1-1674173287096.png" alt="dle13_1-1674173287096.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Snippet of my FeatureTable code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureTable = new FeatureTable({
    view: view,
    layer: featureLayer,
    tableTemplate: {
        columnTemplates: [
            {
                type: "field",
                fieldName: "date",
                label: "DATE",
                direction: "asc"
            },
            {
                type: "field",
                fieldName: "title",
                label: "TITLE"
            },
            {
                type: "field",
                fieldName: "notes",
                label: "NOTES"
            },
            {
                type: "field",
                fieldName: "street",
                label: "ADDRESS"
            }
        ]
    },
    dateOptions: {
        timeEnabled: true,
        datePattern: "MM dd y"
    },
    container: "tableDiv"
});&lt;/LI-CODE&gt;&lt;P&gt;Any help would be appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 00:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-format-featuretable-date/m-p/1249770#M79968</guid>
      <dc:creator>dle13</dc:creator>
      <dc:date>2023-01-20T00:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Format FeatureTable Date</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-format-featuretable-date/m-p/1249803#M79969</link>
      <description>&lt;P&gt;I was able to solve my issue by performing the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to ArcGIS Online&lt;/LI&gt;&lt;LI&gt;Click on desired Layer&lt;/LI&gt;&lt;LI&gt;Click on Data tab&lt;/LI&gt;&lt;LI&gt;Click on Fields tab&lt;/LI&gt;&lt;LI&gt;Select "date" Display Name&lt;/LI&gt;&lt;LI&gt;Clear the date range, which was defined in Epoch/Unix time for some reason&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;No code changes were needed. After changing my settings to what is displayed below, I refreshed my FeatureTable to see that the date is now properly displayed in MM/DD/YYYY hh:mm format.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dle13_0-1674189942330.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60808i78885AA6A0EA8BE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dle13_0-1674189942330.png" alt="dle13_0-1674189942330.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;FeatureTable Date Column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dle13_1-1674189980463.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60809i4BDFE9E8ECFE5E65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dle13_1-1674189980463.png" alt="dle13_1-1674189980463.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 04:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-format-featuretable-date/m-p/1249803#M79969</guid>
      <dc:creator>dle13</dc:creator>
      <dc:date>2023-01-20T04:47:14Z</dc:date>
    </item>
  </channel>
</rss>

