Entry Post Date Format time since – X days ago

Is there anyway to get my date formats looking like Facebook? I’d like to get my articles to have this as a date format: “5 min ago”, “yesterday”, “3 days ago”, “4 months ago” and then once it reaches a full year ago, make it have a date format like “Dec 5, 2016”.

If anyone has gotten this working, would you mind sharing with me(and the world) your code on how to achieve this in Twig?

Thanks in advance!

Leave a Reply

Your email address will not be published. Required fields are marked *