For one of my websites I needed to convert all dates to a nice, readable and user friendly format like: 2 hours ago, 1 month ago, 24 days ago etc.
Butttt, I didn’t want all my dates converted. Only dates between the current time and 1 year old. Couldn’t find one, so I built it myself.
Quick usage:
{exp:friendly_date stop_after="1 year" format="%m/%d/%y %H:%i"}{comment_date}{/exp:friendly_date}This example will convert all comment dates from the last year. Comments with older dates will be displayed according the format argument.
See the plugin usage for more options!
Feedback is always appreciated.
EDIT Small fix in 1.1 :
Hi,
Nice addition to the pool of EE add-ons.
One suggestion:
I think you should change the name of your plugin because there already exist the plugin with almost the same name - WI Friendlee Date.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.