I'm looking to theme the date module, so far this is what i have to work with, using the print_r(); i come up with this:

October 16, 2008 - 12:00am

in my field_date, but i want to theme each sepereate piece, so I'm looking to wrap each one in its own div, like this:

october
16

etc...

how can this be done? if possible at all?

Comments

nevets’s picture

The date module provides a host of theming functions that could probably help here. For date ver 2 the theme functions are in date.theme (If I recall correctly).

mz906’s picture

I don't have a date.theme file in my date modules...

this is really getting frustrating, i could easily do what i wanna do using php's date and strtotime but i can't find where to place the code in drupal or what files to edit... :(

to clearify exactly what i'm trying to do:

i have created a CCK that has the user enter an "event date"
i want to create a view that displays the "event date" along with the "event title"
and i want to be able to theme the VIEW (here's where it gets tricky) i want to wrap each item in its own div tag like this:

//where $s= time

'<div class="month">'. date(M, $s) . '</div>';

'<div class="day">'. date(d, $s).'</div>';
// and so on...

i want to add this style code to my view