본문 바로가기
JQuery

[JQuery] JqGrid DateTime열 날자형식만 간단히 표시 하기

by Hwoarang757 2015. 2. 9.

           

 

JqGrid DateTime열 날자형식만 간단히 표시 하기

jQuery("#tbList").jqGrid({
                datatype: "local",
                height: 350,
                //                colNames: ["테스트"]
                colModel: [
                    { name: 'Spec', index: 'Spec', width: 150, sortable: false , formatter: "date",
                       formatoptions: { newformat: " Y/m/d" }

}],
                ondblClickRow: function (rowid) {
                    Choice();
                },
                multiselect: true,
                autowidth: true,
                caption: "테스트",
                hiddengrid: false
            });

 

 

 

날자와 시간을 같이 출력한다고 하면

 

formatoptions: { newformat: "y/m/d H:i:s"}