Experimental Project

This is a sandbox project, which contains experimental code for developer use only.

Screen capture of date field format settings for age and zodiac sign

This is a simple module that implements a field format for the datetime field type.

It currently displays the date as an age in years or as a zodiac sign.

In the future this module will support multiple field formats for datetime where there is a need to calculate a value based on one or more date fields, such as:

  • Select two date fields in a content type and display time between dates
  • Determine age based on a Drupal variable (example - age as of July 31st 2014)

Eventually this may become a module that implements a new field type that is derived from one or more dates, similar to what Geofield does for locations.

There is a quick demo of the module on YouTube at:
http://youtu.be/0UZdLNxcQmI

Project Information