Settings in manage display.
Settings in views for all fields date type.
Settings in views for date field.

Experimental project

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

Module provides additional options for displaying date type fields. You can configure how to show the date for the different values ​​of field.
If the field value
- less than yesterday,
- equally yesterday,
- equally today
- equally tomorrow
- ​​greater than tomorrow.
You can choose any format added to the your site - /admin/config/regional/date-time.

Additionally, field return with html classes:
for "today" - <span class="more-dates-today">Value date field with format for past </span>;
for "yesterday" - <span class="more-dates-yesterday">Value date field with format for yesterday </span>
and etc.

Example of use: you have a node "Event" and you want to show today's date as format "HH:ii", yesterday - as format "DD MM YY", and tomorrow - as "dd FF YY HH:ii".

Related projects:

(if you have a module that you think is related, submit an issue and I will add it here)


git clone --branch 7.x-1.x http://git.drupal.org/sandbox/mbodalova/2212053.git more_dates

Link to project.

Project information