version : Smart GWT Pro : v9.0p_2013-08-24/Pro Deployment
env : any
currently, we have some rest services to provide the json data for listgrid, for example :
the server return the iso date format in string "2013-08-30T16:00:00", in my case, I just want to show the
"date" part and ignore the "time" part,
however, the listgrid still show the value with "2013-08-30T16:00:00" even I have set the ListGridField with type ListGridFieldType.Date and have called setDateFormatter() , for now, I am using a CellFormatter but this way will cause the odd code in everywhere.
if I set the data with :
the ListGridFieldType.Date works for me, so I just guess it is due to listgrid can't recognize the format "2013-08-30T16:00:00" so that it can't convert it to javascript date.
my question is : is there any global solution that can resolve the issue ? for instance, some global parser ?
thanks, I am using SmartGWT 4 pro 2013-08-24
env : any
currently, we have some rest services to provide the json data for listgrid, for example :
Code:
data : [ { name : "name1", date : "2013-08-30T16:00:00" }, { name : "name2", date : "2013-08-30T16:00:01" } ]"date" part and ignore the "time" part,
however, the listgrid still show the value with "2013-08-30T16:00:00" even I have set the ListGridField with type ListGridFieldType.Date and have called setDateFormatter() , for now, I am using a CellFormatter but this way will cause the odd code in everywhere.
if I set the data with :
Code:
data : [ { name : "name1", date : new Date() }, { name : "name2", date : new Date() } ]my question is : is there any global solution that can resolve the issue ? for instance, some global parser ?
thanks, I am using SmartGWT 4 pro 2013-08-24