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.
This is the date field shown in the online Map Viewer that I used to create some points:
Snippet of my FeatureTable code:
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"
});
Any help would be appreciated. Thank you!