JSFiddle - React, Tailwind, and code Playground

by gfosco

HTML

<div class="article">
 <p class="date">16-05-2011 15:28:24</p>
</div>

JavaScript

$('p.date').each(function() {
        var str = $(this).html();
        $(this).html(str.split(" ",1));
    });