We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: Social Date

Development and Programming

Wouter Vervloet's avatar
Wouter Vervloet
758 posts
about 16 years ago
Wouter Vervloet's avatar Wouter Vervloet

I finally got round to finish this small plugin of mine.

Social Date

Create relative dates in either the past or the future.

This version of Social Date is developed for ExpressionEngine 1.6.x

Grab a copy from GitHub

Usage

The date given in the date parameter can be in any format as well as in the past or future.

{exp:social_date date='{expiration_date}'} // outputs: 'in about 1 day'
{exp:social_date date='next monday'} // outputs: 'in about 2 days'
{exp:social_date date='1272660359'} // output: '2 hours ago'

It was inspired by both avroo’s Friendly Date plugin as well as Brian Mulloy’s Relative Date plugin. The biggest difference is that this one also accepts dates in the future.

Have fun with it!

Greetz, Wouter

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.