How to suppress formatted string (Date) in the result of Identify?

1250
0
08-10-2013 03:01 AM
StanleyFrank
New Contributor
Is it possible to suppress formatting of esriFieldTypeDate fields in the result of Identify call ?

http ://XXXXXXXXXX/ArcGIS/rest/services/XXXXXXXX/MapServer/identify?geometryType=esriGeometryEnvelope&geometry={xmin: -843500, .......}&spatialRel=........&mapExtent=..........&imageDisplay.........&returnGeometry=false&tolerance=2&layers=visible:1&f=json
{
"results" : [
{
"layerId" : 1,
"layerName" : "Body2",
"value" : "1023",
"displayFieldName" : "FC_ID",
"attributes" : { "OBJECTID" : "3583", "FC_ID" : "1023", "Shape" : "Point", "datum" : "2/1/1900 9:30:12 PM" }
} ] }


whilst the result of Query call is correct (miliseconds since 1970):

http ://XXXXXXXXXX/ArcGIS/rest/services/XXXXXXXXXXX/MapServer/1/query?objectIds=3583&outFields=*&f=json

{
"displayFieldName" : "FC_ID",
"fieldAliases" : { "OBJECTID" : "OBJECTID", "FC_ID" : "FC_ID", "datum" : "datum" },
"geometryType" : "esriGeometryPoint",
"spatialReference" : { "wkid" : 102067 },
"fields" : [
{ "name" : "OBJECTID", "type" : "esriFieldTypeOID", "alias" : "OBJECTID" },
{ "name" : "FC_ID", "type" : "esriFieldTypeInteger", "alias" : "FC_ID" },
{ "name" : "datum", "type" : "esriFieldTypeDate", "alias" : "datum", "length" : 36 }
],
"features" : [
{
"attributes" : { "OBJECTID" : 3583, "FC_ID" : 1023, "datum" : -2206232988000 },
"geometry" : { "x" : -842350, "y" : -1139675 }
} ] }
0 Kudos
0 Replies