// Query myQuery = new esri.arcgis.gmaps.Query(); myQuery.outFields = ["ID","NAME","TO_CHAR(DATE, dd/mm/yyyy)"]; myQuery.where = "1=1";
what you've shown there is not possible i don't think. if you want it coming in directly as a formatted date i think your only option is to create a new field and calculate it from the DateTime field as text in whatever format you need. then you can specify that new field in your outFields list.
mmm... yes, it works but it is still a workaround (even if better than the javascript one...
have you found the solution?
mine is coded this way:
layerDefs[0] = "ZON='DATE = TO_DATE('"+ (dojo.byId('DATE').value) +"','YYYY-MM-DD')";
$.format.date(attribute["FIELD_NAME"],'dd/MM/yyyy')