Views DoubleDate

Categories

Component ID

1376428

Component name

Views DoubleDate

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

1741

Component created

Component changed

Component body

This module adds a custom date format to Views, to allow two different date formats to be applied to a single instance of a field, based on an offset from the current time. For example, display any nodes in the past 6 hours as Time Ago (ie, "2 hours ago") and any nodes older than that as MM/DD/YYYY - HH:MM.

Credits

This module borrows heavily from a blog post on How to create a custom Views handler by Tancredi D'Onofrio. Many thanks to Tancredi for posting the example code.