Let's say you want to spice up the display of dates in your Drupal Views. All blogs are displaying date-elements in it's own line and apply a different styling to it. Wordpress blogs do it after all, so why can't we?
There are numerous post that explain how to do this in the node display form by customizing your template.php. Trust me it is not as difficult as it sounds and you should try it. I avoided it for months but in the end it was nothing more than a few lines of easy code!
This post however will deal with Views! You know about Views right? Well views are powerfull, very powerfull. They just ask from you to spend some time with them. Views can display all information available from Drupal in fields. All these fields are customizable in many ways. Date fields are no difference. By default when you add a new date-field in your view (eg node: post-date) it will ask you how you wan't this information displayed. By choosing "Custom" in date format views allows you to enter the pattern this field will be displayed.

The configuration shown in the picture will display dates like that:
<blockquote>05/Sep 11:29</blockquote>
While this is pretty nice, because we ommited the year with only a few clicks, it is now easily themable. We want to theme time differently than day and month for our project. We need to apply a different class to it then. The easy way of doing this, without editing template.php is by passing all this information in the "custom date format" field, like that:
<\d\iv \c\l\a\s\s="\d">d/M</\d\iv><\d\iv \c\l\a\s\s="\t">H:i</\d\iv>

What I've done above is that I'm displaying date and time in to different html div's and apply to different css classed (d and t, for date and time accordingly). All the backslashes ("\") are escape characters, they are placed in front of characters that we do not want views/php to interpret them as characters that will define the date-output of php (more on this here http://us.php.net/manual/en/function.date.php).
So we escape every "d" in the the word "div" because "d" also stand for "Day of the month, 2 digits with leading zeros". That's all!
The above code will output this:
<blockquote> 28/Oct
09:19</blockquote>
and the html code behind it will be:
<br /><div class="d">29/Dev</div><div class="t">20:12</div><br /><div class="d">29/Dec</div><div class="t">20:12</div>