I have a view which shows a couple of fields in a list. One of the fields is a date field. I'm trying to alter the output of this field so that I can control the day, month and year seperately. So instead of the view putting out
<div>03/05/2013</div>
I want it to put out
<div>03</div>
<div>05</div>
<div>2013</div>
I've already tried doing it with the use of custom date formats, then adding the date field three times to the view, each with a different date format. Excluding the first two fields from display and rewriting the output result of the third field with tokens. But then the day/month/year is wrapped in a span tag when I just want the raw value.
Should I use a template file, preprocess function,... for this?
Thank you.