Date/Calendar Tips & Tricks

A collection of code and theme snippets and other tips and tricks to solve specific problems with dates.

Sometimes the module out of the box doesn't quite do exactly what you need, but there may be fairly simple ways to make it do what you want. Or perhaps you found it confusing to understand how to accomplish some goal and want to share what you learned to make it easier for others.

If you have tips or tricks like this to share, please add them as child pages to this documentation. Be sure to mark each one to indicate which version of Drupal they pertain to. Things that work in one version will not work the same in another.

Add a new date format

Moved here from comments posted on front page:

Create dates with no year

From http://drupal.org/node/219794#comment-5111570:

Date difference

The syntax to create a new date object is:

The Dangers of mixing CCK fields, granularity, and sorting views

Moved here from comment on front page:

Theming of Date Fields with CSS

Hello, I spent a lot of time searching for a way to control the look and feel of a date field and its variables through CSS and didn't find

Guide maintainers

karens's picture