Missing time when receiving data from server to client

Hi,

My requirement is to show datetime info for a field in a ListGrid. I am using DMI for populating data into the ListGrid. The field on the server which is of type Date(java.util) contains date as well as time info but when I retrieve it on the client, it does not contain any time info. Please have a look and tell me what can be wrong? I am trying to show datetime info for tradeDate field. Here is the code used:

isc.ListGrid.create({
ID: “tradesList”,
width: “100%”,
dataSource: blotterDS,
dataPageSize: 40
})

<DataSource ID=“blotterDS” serverType=“generic”>
<fields>
<field title=“Trade ID” name=“tradeID”/>
<field title=“Inquiry ID” name=“inquiryID”/>
<field title=“Trade State” name=“tradeState”/>
<field title=“Trade Date” name=“tradeDate” type=“date” displayFormat=“toUSShortDateTime”/>
<field title=“Sett. Date” name=“settlementDate” type=“date”/>
<field title=“B/S” name=“side”/>
<field title=“Size” name=“quantity” type=“integer” formatCellValue=“isc.Format.toUSString(value);”/>
<field title=“Identifier” name=“identifier”/>
<field title=“Ticker” name=“ticker”/>
<field title=“Coupon” name=“coupon” type=“float” formatCellValue=“isc.Format.toUSString(value,3);”/>
<field title=“Maturity” name=“maturity” type=“date”/>
<field title=“Price” name=“price” type=“float” formatCellValue=“isc.Format.toUSString(value,3);”/>
<field title=“CounterParty” name=“cntrPty”/>
<field title=“Trader” name=“trader”/>
<field title=“User” name=“user”/>
<field title=“Business Type” name=“businessType”/>
</fields>

&lt;serverObject lookupStyle="new"
	className="com.marketaxess.portal.tradingdesk.web.blotter.dmi.BlotterDMI" /&gt;

</DataSource>

Server response data copied using Eclipse debugging, tradeDate here contains time as well:

data=[tradeId: 23319-0 inquiryid: 26979 tradeDate: Mon Apr 13 09:34:44 EDT 2009 settDate: 2009-04-16 00:00:00.0 side: S qty: 100 identifier: 291011AQ7 ticker: EMR coupon: 0.06 maturity: 2032-08-15 00:00:00.0 price: 100.0 cntrPty: ABN_US trader: mktx_clt user: mktx_clt businesstype: null]

Response received on client, copied from Firebug, tradeDate here does not contain time:

//isc_RPCResponseStart–>[
{
endRow:1,
totalRows:1,
isDSResponse:true,
invalidateCache:false,
status:0,
startRow:0,
data:[
{
businessType:null,
cntrPty:“ABN_US”,
coupon:0.06,
identifier:“291011AQ7”,
inquiryID:“26979”,
price:100.0,
quantity:100,
side:“S”,
ticker:“EMR”,
tradeID:“23319-0”,
tradeState:“Done”,
trader:“mktx_clt”,
user:“mktx_clt”,
maturity:Date.parseServerDate(2032,7,15),
tradeDate:Date.parseServerDate(2009,3,13),
settlementDate:Date.parseServerDate(2009,3,16)
}
]
}
]//isc_RPCResponseEnd

This topic also adheres to the same issue:

http://forums.smartclient.com/showthread.php?t=3605&highlight=datetime+server

So is there anyway, I can receive the time info on client from server?

Thanks,
Dinesh

Declare your field as “datetime”, not “date”. “date” means a logical date independent of time value (eg Christmas). This has been clarified in the 7.0 docs.