My query in JS is returning a Javascript date as a string from my database (i.e "/Date(1657756800000)/"). I need a way to first convert that into a Javascript date object and then parse/output it as a readable date string.
Currently if I strip the preceding "/Date(" and ending ")/" parts and try to just pass that number "1657756800000" into a "new Date(1657756800000)" I get an "Invalid Date" error.
How do I get around this?