demo2

demo2

HTML

<ul>

</ul>

JavaScript

function wle(text, date){
	$("ul").append("<li>"+ text +"</li>");
}


var arrValues = '2020-11-24T00:00:00,2020-11-24T01:00:00,2020-11-24T22:00:00,2020-11-24T23:00:00'.split(',');
// Loop over each value in the array.
$.each(arrValues, function (intIndex, objValue) {
	wle(objValue + " => " + new Date(objValue).toString());
})