Last post Jan 12, 2019 02:09 PM by firstname.lastname@example.org
Jan 12, 2019 01:54 PM|Robert John|LINK
I'm getting my data onto my page, but I'm having some trouble with the JSON data while returning Date data types.
I'm getting a string back that looks like this:
Jan 12, 2019 02:09 PMemail@example.com|LINK
You can do like following.
var pattern = /Date\(([^)]+)\)/;
var results = pattern.exec(value);
var dt = new Date(parseFloat(results));
return (dt.getMonth() + 1) + "/" + dt.getDate() + "/" + dt.getFullYear();
Please don't forget to mark as answer if it helps you. Thanks!