Days Between
Developer
3rd Party (Free)
EE Version Support
- ExpressionEngine 2
Compatibility
If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.
- Updater
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Content Elements
- Better Workflow
- Matrix
- Grid
- Webservice
- Publisher
Requirements
- jQuery for the Control Panel
Add-On Type(s)
Plugin
Tags
- compare dates, date, dates, day, days
ExpressionEngine plugin which calculates the number of days between dates.
Description
ExpressionEngine plugin which calculates the number of days between dates.
Installation
Copy the “days_between” folder to your /system/expressionengine/third_party folder.
Usage
{exp:days_between:today}
Calculates the number of days between a date and today.
{exp:days_between:dates}
Calculates the number of days between two dates.
Parameters
from_date=""
Unix timestamp or valid date/time format.
from_day=""
If passing day as individual argument (not used in conjunction with from_date).
from_month=""
If passing month as individual argument (not used in conjunction with from_date).
from_year=""
If passing year as individual argument (not used in conjunction with from_date).
to_date=""
Unix timestamp or valid date/time format
to_day=""
If passing day as individual argument (not used in conjunction with to_date).
to_month=""
If passing month as individual argument (not used in conjunction with to_date).
to_year=""
If passing year as individual argument (not used in conjunction with to_date).
invert="yes"
Inverts negative numbers when using future dates.
Examples
{exp:days_between:today from_date="1420088400"}
Returns the number of days between January 1, 2015 (epoch timestamp 1420088400) and today.
{exp:days_between:today from_date="January 1, 2015"}
Also returns the number of days between January 1, 2015 and today.
{exp:days_between:today from_year="2015" from_month="1" from_day="1"}
Also returns the number of days between January 1, 2015 and today.
{exp:days_between:dates from_date="January 1, 2015" to_date="1/4/2015"}
Returns 3.
{exp:days_between:dates from_date="yesterday" to_date="tomorrow"}
Returns 2.
{exp:days_between:dates from_year="2015" from_month="1" from_day="1" to_year="2015" to_month="1" to_day="2"}
Returns 1.
Days Between Links
This entry was created January 6, 2015, 10:24 am.
This entry was last updated January 6, 2015, 10:24 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!