【发布时间】:2011-09-22 12:54:33
【问题描述】:
我需要以 mm/dd/yyyy 和 mm/dd/yyyy hh:mm:ss 两种格式显示日期。我发现我们可以在 colmodel 中使用 formatoptions
formatoptions: {srcformat: 'ISO8601Long', newformat: 'm/d/y'}
和
formatoptions: {srcformat: 'ISO8601Long', newformat: 'm/d/y h:i:s'}
但我在 jqgrid 中得到输出为 mm/dd/yy。任何人都应提供解决方案如何显示 mm/dd/yyyy。我需要对两列进行排序。
提前致谢
【问题讨论】:
标签: sorting date jqgrid formatting