Is there a way to set the date format in RESTHandler? Seems like there should be a setting for the date format but I could not find it.
My problem is that the default date format is 'new Date(long)' -so something like
someDate : new Date(12361523213)
which is not valid JSON and I am yet to find a parser that will take it. (It works fine in Javascript because it get's eval'ed into an actual date object).
At the moment, my gruesome workaround is to rip through the raw result and replace 'new Date(12321423)' with an actual formatted date string.
My problem is that the default date format is 'new Date(long)' -so something like
someDate : new Date(12361523213)
which is not valid JSON and I am yet to find a parser that will take it. (It works fine in Javascript because it get's eval'ed into an actual date object).
At the moment, my gruesome workaround is to rip through the raw result and replace 'new Date(12321423)' with an actual formatted date string.
Comment