my date displaying like that /Date(1502976642000)/
my date displaying like that /Date(1502976642000)/
SriRishitha
Posts: 42Questions: 4Answers: 0
i am using json format to get the data from server. i am dynamically assign the columns like that columns: cols.
how can i change the dateformat.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There are a number of threads on this topic already if you search for
/Date(14
. For example.Allan
In short, that is an excepted date format for JSON and that is the for the MS scripting services puts it in.
We handled this a couple of ways.
1. Convert the data to a string before serializing.
2. We use Newtonsoft serializer (its free)
3. We use momentjs.com client side. It knows how to format the date style