Here is a JS function which is populating a html page with JSON data via AJAX. I've got everything work but the format of the JSON data date and time, here is how the JSON data date looks like in a browser:
/Date(1378916205770)/
And here is my JS function:
$("input.Btn_load_more").click(function () {
var valueNum = $("input.index_page").val();
$.getJSON("http://localhost:64127/DistributorFeed/feeds/36926477759/" + valueNum + "/10", function (obj) {
$.each(obj, function (key, value) {
$("<div class=\"feed_item\"><div class=\"Wrapper_feed_item\"><img class=\"feed_icon\" src=\"/Content/imgs/4life_img_holder.png\" alt=\"\"/><p class=\"feed_title\">"
+ value.FeedType +
"</p><p class=\"feed_message\">" + value.Message + "</p> <p class=\"feed_date\">" + value.DateAdded + "</p> </div>")
.appendTo(".Wrapper_feed");
});
});
});
I am wondering that how can I format this JSON data to the format like this "Thursday, June 13, 2013 - 7:24:22 AM" ? Any help will be appreciated.