admin管理员组文章数量:1332361
I have the date coming in as 30-Oct-24 and I need it displayed as 30-Oct-2024 and also need to be able to sort by date
I have this code but it's not working and showing gibberish strings instead
formatter: 'date', formatoptions: { srcformat: 'd-MMM-yy', newformat: 'dd-MMM-yyyy' }, sorttype: 'date'
Is there a list of date formats for JqGrid that I can find somewhere? This should work but does not.
I have the date coming in as 30-Oct-24 and I need it displayed as 30-Oct-2024 and also need to be able to sort by date
I have this code but it's not working and showing gibberish strings instead
formatter: 'date', formatoptions: { srcformat: 'd-MMM-yy', newformat: 'dd-MMM-yyyy' }, sorttype: 'date'
Is there a list of date formats for JqGrid that I can find somewhere? This should work but does not.
Share Improve this question asked Nov 21, 2024 at 1:53 sarsnakesarsnake 27.7k62 gold badges185 silver badges294 bronze badges1 Answer
Reset to default 0jqGrid follow the php date formatting. This is described into the documentation
In your case you can try with:
... srcformat : 'd-M-y', newformat : 'd-M-Y' ,...
本文标签: jqgrid date formatter from and to formatsStack Overflow
版权声明:本文标题:jqgrid date formatter from and to formats - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742318539a2452309.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论