I want to display # Days Ago, or # Months Ago, or # Years Ago
Example: 3 Days Ago
I need to add custom symbols in the Date field in views.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
I think it's best for you to use the Timeago module: https://www.drupal.org/project/timeago
First, it provides a timeago date formatter option for use with dates anywhere, which answers your need.
Second, it solves the caching and correctness of time-ago dates problem for you automatically. Even though you don't mention this in your question, this is important as it's best to cache pages in live production in one way or another.