Date field formats using both Query and Identify Tasks

2375
1
05-05-2010 06:35 AM
SteveDale
New Contributor
I have noticed that the Query Task and the Identify Task return date field values in a different format.

ie.. The id format is returning 10/16/2010 (mm/dd/yyyy)
     The query format is returning a longer date format such as Mon Oct 04 00:00:00 EDT 2010

How can I control the display format of the date for both id and query without having to parse out each type differently.  It will also change when I go to either a UNIX or Windows server.  I am using ArcGIS Server 9.3.1 on both windows and unix servers, and the Javascript api 1.6.

Thanks in advance for any help..
Steve
0 Kudos
1 Reply
AlessioDi_Lorenzo
New Contributor
I solved using this jQuery plugin on the client-side...

usage example:
jQuery.format.date(attributes["DATE_ATTR"],"dd/MM/yyyy")
0 Kudos