JSFiddle - React, Tailwind, and code Playground

HTML

<li>Tue, 15th May 2012 10:11</li>
<li>Tue, 15th May 2012 10:12</li>
<li>Tue, 15th May 2012 10:13</li>
<li>Tue, 15th May 2012 10:14</li>
<li>Tue, 15th May 2012 10:15</li>
<li>Tue, 16th May 2012 21:08</li>
<li>Tue, 16th May 2012 21:07</li>
<li>Tue, 16th May 2012 21:06</li>


<code></code>

JavaScript

$("li").each(function () {
    words = $(this).text().split(' ');
    
    xxx = words[1]+" "+words[2]+" "+words[3]+",";


$("code").append(xxx);
    

});