date output format

Discussion created by digy79 on Jul 1, 2010
Latest reply on Jul 5, 2010 by digy79
Hi all,

when I execute a query against a mapservice i get dates in this format:

Mon Jun 28 00:00:00 CEST 2010

using jquery I'm able to format it as dd/mm/yyyy

My question is:
is there a way to translate the date directly into the query?
Something like:

// Query
myQuery = new esri.arcgis.gmaps.Query();
myQuery.outFields = ["ID","NAME","TO_CHAR(DATE, dd/mm/yyyy)"];
myQuery.where = "1=1";