I am attempting to display the date of an event. I have some nice CSS usually used to display the date a node is created or updated, but I would like to highlight the start date of the actual event. The field is a CCK date field called "eventdate". I used the Calendar module, which created a "from" and a "to" date, but I don't now how to identify these individually.
I have tried at least 30 different ways, but on most I get 1 Jan instead of the date (or an error). It works fine if I use the Created date.
<div class="date-label"> <div class="date_day"><?php print format_date($node->content['eventdate']['#value'], 'custom', 'j'); ?></div> <div class="date_month"><?php print format_date($node->content['eventdate']['#value'], 'custom', 'M'); ?></div> <div class="comments_label"><?php print l($node->comment_count, 'node/' . $node->nid, array('fragment' => 'comments')) ?></div> </div>
Can anyone help?