my date displaying like that /Date(1502976642000)/

my date displaying like that /Date(1502976642000)/

SriRishithaSriRishitha 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

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    There are a number of threads on this topic already if you search for /Date(14. For example.

    Allan

  • bindridbindrid Posts: 730Questions: 0Answers: 119
    Answer ✓

    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

This discussion has been closed.