2015-02-07 7 views

답변

1

당신은 당신의 ColModel

{name: 'colNmae', index: 'ColName', formatoptions: { srcformat: "ISO8601Long", newformat: "m/d/Y h:i A" }} 

이 시도 할 수 있습니다 또는이

{name: 'colNmae', index: 'ColName', sorttype: 'date', formatter: 'date', datefmt: 'd-M-Y'}, 
0

당신은 당신의 colModel 날짜에 포맷터를 설정해야합니다 및있는 jqGrid 자동으로 마이크로 소프트의 날짜 형식을 감지합니다.

srcformat은 설정할 필요가 없지만 newformat이 될 수 있습니다.

이 시도 :

colModel : [ 
... 
{name:'Mydate', ...formatter: 'date', formatoptions:{newformat 'm/d/Y'}, ...}, 
... 
] 
0

이 열 속성이 나

formatter: "date", formatoptions: { newformat: "ISO8601Long" } 
근무