My Markup is like this :
<div class="article">
<p class="date">16-05-2011 15:28:24</p>
</div>
This output is generated by a CMS and I searched for everywhere to modify the output but I didn’t reach a solution.
I want to use jQuery to remove the “hour” from the date paragraph.
Saying I don’t want any text after the “space” so that the day-month-year will show up only.
Any idea how to achieve this using jQuery?
Pretty easy loop, splitting by a space with a limit of 1 item: