I have two ways to display an InfoWindow with the attributes of a graphic. The first is using a IdentifyTask to return the graphic and the other gets the selectedItem of a Datagrid (rovGrid) and using the findGraphicByAttribute code to return the graphic.
However, the format of the Date field is different in the returned graphic. The IdentifyTask graphic attribute shows "2/10/2005" and the Datagrid graphic attribute shows "1107993600000". Why are the two methods showing different date formats for the same feature?
Here's the partial code for each method
//IdentifyTask
identifyTask.execute(identifyParams, new AsyncResponder(onResult, onFault, clickGraphic));
function onResult(results:Array, clickGraphic:Graphic = null):void
{
if (results && results.length > 0)
{
var result:IdentifyResult = results[0];
var resultGraphic:Graphic = result.feature;
//Datagrid click
private function rovGrid_Click():void { var obj:Object = rovGrid.selectedItem;
if (obj != null)
{
MainMap.infoWindow.hide();
var graphic:Graphic = findGraphicByAttribute(obj, layerROVGraphics);
