My Jqgrid's data source is a php which returns a json
The date constraint in the returned json is in milliseconds
I want to convert it to regular date format
I tried searching for a solution the one that got real close to solution is the one given [below
JQ Grid Date Format
formatter:'date', formatoptions: {srcformat: 'U', newformat:'d/m/Y'}
But still it doesn't fix my issue as the date is not formulated right 24/10/146
which is not the correct date at all
Looking forward to some worthy fixes or suggestions
1394085600000 which is the returned json data should essentially be 03/06/2014
thanks in advance
解决方案
I figured out the solution myself
Thanks for the inputs @oleg
But the issue was the input being milliseconds and the formatter src format was "U" which is unix and milliseconds/1000 will provide the unit in Unix
So as for now {srcformat: 'U/1000', newformat:'Y/d/m'} gives me the right date format but
It doesn't kinda make sense though
But still keeping the question open for legitimate answer
thanks