Description
This shortcode displays the number of days from now 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 (?) |
FAQ
Can I use this shortcode as an Admin?
Yes.
Shortcode Attributes
| Conditional | No |
|---|---|
| Nestable | No |
| Accepts formatting | Yes |
| Capturable | Yes |