i have problem formatting data with dates. from server i am getting unix timestamp like ‘1494216000000’.. i tried below in colmodel
{label:’Ex Div Date’,name:’divExDate’,width:100,sorttype:’date’,align:’right’,formatter:’date’,formatoptions: {srcformat:’U’,newformat:’ShortDate’}}) which is not working..
then i converted unix date into something like
$grid.jqGrid(‘setCell’, rowId, “divExDate”, “2017-05-17”);
with
{label:’Ex Div Date’,name:’divExDate’,width:100,sorttype:’date’,align:’right’,formatter:’date’,formatoptions: {srcformat:’Y-m-d’,newformat:’ShortDate’}});
which is not working as well..
what is the default format which i can use so that sorting and displaying works properly.. ( i can format server date to whatever default format jqgrid is expecting)
Thanks
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top