Version Added 2.43


This shortcode displays the number of days difference from today to another date.

Shortcode Examples

The shortcode to display the number of days from a date:

[memb_days_difference date="2015-10-31"]

The shortcode to display the number of days from a date, and add text afterwards depending on whether the date is in the future, or the past:

[memb_days_difference date="2015-12-25" after=" days after Christmas" before=" days until Christmas"]

Dynamically determine the number of days before or after birthday

[memb_days_difference date="{{contact.birthday}}" before=" days ago" after=" days from now"]

Shortcode Parameters

capture:  Lets you capture the output of this shortcode and route it to the destination of your choice (?)

date:  The date to find the difference from.

after:  The phrase to put after dates in the future.

before:  The phrase to put after dates in the past.

txtfmt:  Lets you process the output of this shortcode through text processing functions (?)

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Accepts formatting: Yes (?)
Capturable: Yes (?)


Can I use this shortcode as an Admin?


ActiveCampaign Shortcode Documentation

Looking for info on the ActiveCampaign version of this shortcode?

Click Here to View the ActiveCampaign Shortcode Documentation

Memberium Membership Site Workshop
October 10th-12th, 2018 in Phoenix, Arizona

Get your Memberium site and Infusionsoft app fully implemented in 3 days. Save $100 OFF your ticket until the end of this Monday, September 24th!

Click Here to Learn More and Reserve Your Seat