The RSS feed I read from was recently updated and messed up quite a few things, I fixed most of the issues but this I can't figure.
How the date was formatted previously:
<div>
<div>
<div>
13 </div>
</div>
</div>
<div>
<div>
<div>
July </div>
</div>
</div>
<div>
<div>
<div>
2012 </div>
</div>
</div>
How it is right now:
<div>
<div>
<div>13th July, 2012</div>
</div>
</div>
So:
- Day Month and Year has to be separated in their own DIVs (most difficult)
- "th" and "," needs to be removed (this is easy with str_replace)
Now the problem is I could do this with jQuery in minutes but it has to be done with PHP before it gets saved, and since the divs have no class/id its even more difficult for me.