JSFiddle - React, Tailwind, and code Playground

HTML

<date>Fri, 26 Oct 2012 20:52:05 +0000</date>
<time>Fri, 26 Oct 2012 20:52:05 +0000</time>

JavaScript

$("date").each(function(self) {
    var date = new Date($(this).text());
    $(this).text(date.toLocaleString());
});

$("time").each(function(self) {
    var date = new Date($(this).text());
    $(this).text(date.toTimeString()+" ("+date.getHours()+":"+date.getMinutes()+")");
});