I'm having an issue with the date format when getting JSON Date/Time.
I've managed to get the date format to: 2009-06-25T17:32:10.0000000
But I need to be: 25/06/2009 17:32:10
But since I'm getting this data from a loop I've trouble finding out how exactly to format the date so that the data is still extracted correctly in the loop. So far the closest I've come is using the Jquery FormatDateTime (which I've added a script Reference for at the start of the document):
//Get Pages Visited
response.Result.PagesViewed.forEach(function (o, i, arr) {
o.PageTime = $formatDateTime('dd/mm/yy hh:ii', o.PageTime);
$('#PagesViewedRows').html("<tr class='info'><td>" + o.PageTime + "</td><td>" + o.PageStatus + "</td><td>" + o.PageName + "</td></tr>");
});
How can I format the o.PageTime to display correctly?