How to format some fields?

See this thread for some links on the topic:
/t/17687/1