English 中文(简体)
是否在“日期”中支离破碎的辅助器?
原标题:Does jqGrid support milliseconds in "datefmt"?
  • 时间:2011-10-10 19:21:11
  •  标签:
  • jqgrid

我的一栏载有日期和可分类。 我未成功尝试使用<代码>datefmt: dd/mm/yyyy hh:mm:s.sssssssss and d/m/Y H:i:s.u in the section model to profiles to jqGrid how to要打一栏。

有待分类的实际数据实例如下:07/10/201103:08:32.454

当然,<代码>sortette/code>栏为

最佳回答

我报告说,这是支尔盖里的一个ug子,将在下一期释放时确定。

问题回答

我建议你以某些非当地化的形式提供日期/时间信息。 例如:

2011-05-29T23:36:41.1470055+02:00

这种日期格式已经可以分类。 将<代码>myDate在<代码>下可使用的/code>的变量改为: NET “o” foratter:

myDate.ToString ("o", new CultureInfo ("en-us", true))

www.un.org/Depts/DGACM/index_spanish.htm 显示: dd/mm/yyyy hh:mm:s.ssss.s.s Format You can use about the following custom formetter:

formatter: function (cellvalue, options, rowObject) {
    var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})" +
                 "(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(.([0-9]+))?)?" +
                 "(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?",
        d = cellvalue.match(new RegExp(regexp));
    return d[5] +  /  + d[3] +  /  + d[1] +     + d[7] +  :  + d[8] +  :  + d[10] +
           . + d[12];
}




相关问题
Retrieving original row data from jqGrid

It is possible to use the getRowData method to retrieve the current of a cell but this retrieves the current cell content rather than the original data before it went through the formatter. How do I ...

How to programmatically select top row of JQGrid?

How does one programmatically select the top row of a JQGrid. I want to have the top row already selected when it is opened on the page. My grid is sorted by a descriptive column so the first row s id ...

Blank when NaN in jqGrid cells

How to set blank instead of NaN in jqGrid cells ? Using formatter ? Is there an example?

complete jqGrid?

Please, can anyone tell me how to use jqGrid? I want to do edit, add & delete functionality. Also I want to show an image in the grid Please tell me, what can I do, and how can I do?

jqGrid: is there an event for when columns are reordered?

I m using the column reordering feature in jqGrid $grid = jQuery("#list").jqGrid({ sortable:true, ... }); Is there an event that fires after columns are re-ordered? If there is, I can t see ...

Wrapping Text lines in JqGrid

Can you get lines of text to wrap in JqGrid? I have had a look round but i can t find anything.

using jqgrid style for usual Table in asp.net mvc

I d prefer using Table and td instead of JqGrid but i like JqGrid styles. has anyone used jqgrid style for usual Grid of asp.net MVC(i mean Table and td) before?

热门标签