Hello All,
We have a new date plugin in beta here for all to use and test. This plugin contains some date functions to add or subtract days, months and/or years to the current date or a preset date. You can also change the format of how the date will be returned.
Download Link: http://viminteractive.com/ee_addons/dt_v0.1.zip
Here is the writeup and code examples below:
=============================
The Tag
=============================
{exp:dt}
// Will return the date formatted this way: MM/DD/YYYY
==============
TAG PARAMETERS
==============
set=[optional]
Sets the static date that the other parameters will reference. If not set will default to the current date.
{exp:dt set="01/01/2010"}
// 01/01/2010
=============================
format=[optional]
Sets the format of the returned date using the following parameters: <a href="http://php.net/manual/en/function.strftime.php">http://php.net/manual/en/function.strftime.php</a>
{exp:dt format="%A %b %e, %Y"}
// Saturday Nov 3, 1990
=============================
day=[optional]
Adds or subtracts a value in days to current/set date.
month=[optional]
Adds or subtracts a value in months to current/set date.
year=[optional]
Adds or subtracts a value in years to current/set date.
{exp:dt day="3" month="1" year="-1" set="1/1/2010"}
// 02/04/09
Please reply with any bugs, questions or comments.