Date Calculator returns the current date via shortcode and it can calculate it into an other and returns it in posts, pages and also in CF7-forms.
The Date Calculator plugin has NOW three basic functions.
last monday
or second friday of next month
and returns it in posts, pages and also in Contact Form 7 forms.NEW IN VERSION 1.2.0: Now it is also possible to determine the date format!!!
This plugin enable the shortcode-support within Contact Form 7-forms so that the Date Calculator-shortcodes can also be used there.
Upload the unziped date_calculator folder to the /wp-content/plugins/ directory -or- install the plugin via WordPress build-in Plugin-Installation-Function.
Activate the plugin through the ‘Plugins’ menu in WordPress.
Upload the unziped date_calculator folder to the /wp-content/plugins/ directory -or- install the plugin via WordPress build-in Plugin-Installation-Function.
Activate the plugin through the ‘Plugins’ menu in WordPress.
The following shortcodes are available:
[date_add day=”1″ month=”1″ year=”1″ show=”dayonly/monthonly/yearonly” format=”d.m.Y”]
[date_sub day=”1″ month=”1″ year=”1″ show=”dayonly/monthonly/yearonly” format=”m/d/Y”]
Suppose today is the 01.10.2014
[date_sub day="1"] returns: 30.09.2014 [date_sub month="3"] returns: 01.07.2014 [date_sub year="4"] returns: 01.10.2010 [date_sub day="1" month="3" year="4"] returns: 30.06.2010
Suppose today is the 01.10.2014
[date_add day="1"] returns: 02.10.2014 [date_add month="3"] returns: 01.01.2015 [date_add year="4"] returns: 01.10.2018 [date_add day="1" month="3" year="4"] returns: 02.01.2018
It is also possible to only impersonate one part of the date, for example, only the day
This is specified with the “show-parameter”.
Suppose today is the 01.10.2014
[date_add day="1" show="dayonly"] returns: 02 [date_add month="3" show="monthonly"] returns: 01 [date_add year="4" show="yearonly"] returns: 2018 [date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"] returns: 30.07 [date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"] returns: 2014-11-02
It is also possible to impersonate a special date, in your desired format. This is specified with the format-parameter.
Suppose today is the 01.10.2016
[date_say what=”next monday” format=”m/d/Y”] returns: 10/03/2016
[date_say what=”next monday” format=”j. F Y”] returns: 3. October 2016
For more details please look in to the documentation within the plugin.
Update: February 19, 2018
Update: August 02, 2016
Update: July 30, 2016
Update: September 20, 2014
Release Date: September 9, 2014