嗨,目前在网格中显示的日期是错误的 [英] Hi, currently the date being displayed in the grid is wrong

查看:64
本文介绍了嗨,目前在网格中显示的日期是错误的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它显示日期 - 1(json march 2014和jqgrid中的数据显示2011年3月)

这里是剪切的代码



it displays the date – 1 (data in json march 2014 and in jqgrid it is displaying march 2011)
here is the snipped of the code

 { name: 'DateOfBirth', index: 'DateOfBirth', width: 100, align: 'center', formatter: 'date', srcformat: 'yyyy-mm-dd', newformat: 'm-d-y', edittype: 'text', editable: true, formoptions: { rowpos: 5, colpos: 1 },
                            editoptions:
{
    dataInit: function (el) {
        setTimeout(function () {
            $(el).datepicker();
        }, 200);
    }



你能告诉我如何解决这个问题。


can you please tell me how to fix this.

推荐答案

(el) 。日期选择器();
},200);
}
(el).datepicker(); }, 200); }



你能告诉我如何解决这个问题吗。


can you please tell me how to fix this.


我解决了我的问题。只是改变了形态。 ican把这两种结构物放进去...



srcformat:'dd / mm / yyyy',newformat:'MM-dd-yyyy'
i solved my self .just change formates ..here ican put these two formates ...

srcformat: 'dd/mm/yyyy', newformat: 'MM-dd-yyyy'


这篇关于嗨,目前在网格中显示的日期是错误的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆