I have a JSON Object that when stringified looks like this [{"x":"/Date(1451606400000)/","y":877282.57}]
and I want to get the numeric part of the date 1451606400000
I can use regex, but is there an easier way involving parsing the date object? Perhaps I can construct a date from that value and then call a method to get the numeric component?
Dateobject, why not just callgetTime()?date.valueOf()orNumber(date)or even+dateto get numeric timestamp, like in+new Date().new Date(date). The question is really unclear, sorry.