Title: Date Calculator
Author: matthias.s
Published: <strong>सेप्टेम्बर 10, 2014</strong>
Last modified: फेब्रुअरी 20, 2018

---

प्लगिनहरू खोज्नुहोस्

![](https://ps.w.org/date-calculator/assets/banner-772x250.jpg?rev=987425)

यो प्लगिन **वर्डप्रेसका ३ प्रमुख नवीनतम रिलीजहरूसँग परीक्षण गरिएको छैन**। यो अब 
सम्भवतः व्यवस्थित वा समर्थन नभएको हुन सक्छ र वर्डप्रेसका नयाँ संस्करणहरूमा प्रयोग
गर्दा अनुकूलता सम्बन्धी समस्या हुन सक्छ।

![](https://ps.w.org/date-calculator/assets/icon-256x256.jpg?rev=987422)

# Date Calculator

 [matthias.s](https://profiles.wordpress.org/matthiass/) द्वारा

[डाउनलोड गर्नुहोस्](https://downloads.wordpress.org/plugin/date-calculator.1.2.0.zip)

 * [विवरण](https://ne.wordpress.org/plugins/date-calculator/#description)
 * [समीक्षाहरू](https://ne.wordpress.org/plugins/date-calculator/#reviews)
 *  [स्थापना](https://ne.wordpress.org/plugins/date-calculator/#installation)
 * [विकास](https://ne.wordpress.org/plugins/date-calculator/#developers)

 [सहायता](https://wordpress.org/support/plugin/date-calculator/)

## विवरण

The Date Calculator plugin has NOW three basic functions.

    1. It returns the current date via the shortcode [date_now] in posts, pages and
       also in Contact Form 7-forms.
 *  1. It can calculate a date up [date_add] or down [date_sub] and returns it in posts,
       pages and also in Contact Form 7 forms.
 *  1. It can say a special date [date_say] like `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.

## स्क्रिनसटहरू

[⌊The shortcode documentation⌉⌊The shortcode documentation⌉[

The shortcode documentation

[⌊Use the shortcodes on posts, pages, widgets and in CF7-Forms⌉⌊Use the shortcodes
on posts, pages, widgets and in CF7-Forms⌉[

Use the shortcodes on posts, pages, widgets and in CF7-Forms

[⌊Make your thing⌉⌊Make your thing⌉[

Make your thing

## स्थापना

 1. Upload the unziped date_calculator folder to the /wp-content/plugins/ directory-
    or- install the plugin via WordPress build-in Plugin-Installation-Function.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## प्रश्नोत्तर

  Installation Instructions

 1. Upload the unziped date_calculator folder to the /wp-content/plugins/ directory-
    or- install the plugin via WordPress build-in Plugin-Installation-Function.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

  How are the shortcodes?

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”]

  You need more examples?  Calculating the date down:

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
    ```

  Calculating the date up:

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
    ```

  Displaying of certain date parts:

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
    ```

  Returning a special date in your own format:

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.

## समीक्षाहरू

![](https://secure.gravatar.com/avatar/956d5129a730d12b1f58e46942d8caf05d74524814c9ce2fd10a32b2132a3052?
s=60&d=retro&r=g)

### 󠀁[Exactement ce que je cherche !](https://wordpress.org/support/topic/exactement-ce-que-je-cherche/)󠁿

 [pascal50](https://profiles.wordpress.org/pascal50/) अक्टोबर 4, 2020

Pour préciser le copyright en pied de page, afficher une année de naissance pour
entrer dans une équipe sportive, sans avoir à modifier les infos chaque année, cet
outil est exactement ce qu'il me faut ! MERCI

![](https://secure.gravatar.com/avatar/49ddb8fa641c5e775b798cf31bd2b3d7025a95b6b2940a1ea975ef98959421c9?
s=60&d=retro&r=g)

### 󠀁[FIX: Custom date format with date_add and date_sub](https://wordpress.org/support/topic/fix-custom-date-format-with-date_add-and-date_sub/)󠁿

 [misokralj](https://profiles.wordpress.org/misokralj/) जुन 26, 2019

To use this plugin with custom date format on date_add and date_sub here is how 
to easily fix it. Go to the Plugins -> Plugin Editor then select Date Calculator.
You are now on editable date-calculator.php FOR date_add There you need to find 
line 203 and replace with this code: $datecalc = date($format, mktime(0, 0, 0, date("
m")+$month, date("d")+$day, date("Y")+$year)); FOR date_sub Find line 244 and replace
with this code: $datecalc = date($format, mktime(0, 0, 0, date("m")-$month, date("
d")-$day, date("Y")-$year)); Now you can use custom date format.

![](https://secure.gravatar.com/avatar/012a8496d30cb30f847b78cd8145183ad4522c0236ac7ffee383934427b9f57d?
s=60&d=retro&r=g)

### 󠀁[Bummer](https://wordpress.org/support/topic/bummer-6/)󠁿

 [tojekotewo](https://profiles.wordpress.org/tojekotewo/) जनवरी 30, 2019 1 जवाफ

the only one reason I dl this plugin is automatic display for a future date based
on today, but too bad there's a format issue for date_add short code, please fix
this in the next update, thank you, good job.

![](https://secure.gravatar.com/avatar/175813a56405014533d58ac9f107036b0c063ec471931ba0edd53873088fc290?
s=60&d=retro&r=g)

### 󠀁[Format doesn’t work with date_add](https://wordpress.org/support/topic/format-doesnt-work-with-date_add/)󠁿

 [rickmaggio](https://profiles.wordpress.org/rickmaggio/) अक्टोबर 12, 2018

Great plugin, just noticed that the date format doesn't work when paired with date_add.

 [ सबै 5 समीक्षाहरू पढ्नुहोस् ](https://wordpress.org/support/plugin/date-calculator/reviews/)

## योगदानकर्ता र डेभलपरहरू

“Date Calculator” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान 
गरेका छन्।

योगदानकर्ताहरू

 *   [ matthias.s ](https://profiles.wordpress.org/matthiass/)

[“Date Calculator” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्](https://translate.wordpress.org/projects/wp-plugins/date-calculator)

### विकासमा रुचि छ?

[आरएसएस](https://plugins.trac.wordpress.org/log/date-calculator/?limit=100&mode=stop_on_copy&format=rss)
द्वारा [कोड ब्राउज गर्नुहोस्](https://plugins.trac.wordpress.org/browser/date-calculator/),
[एसभीएन रिपजिटरी](https://plugins.svn.wordpress.org/date-calculator/) हेर्नुहोस्,
वा [विकास लग](https://plugins.trac.wordpress.org/log/date-calculator/) को सदस्यता
लिनुहोस्।

## चेन्जलग

#### 1.2.0

Update: February 19, 2018

 * Ready for WP 5.0.

#### 1.1.0

Update: August 02, 2016

 * New feature to set your own date-format.
 * New feature to set a special date like ‘next monday’ or ‘second friday of next
   month’.

#### 1.0.2

Update: July 30, 2016

 * Ready for WP 4.6.

#### 1.0.1

Update: September 20, 2014

 * Prevent Direct Access of PlugIn-File.

#### 1.0.0

Release Date: September 9, 2014

 * First Release.

## मेटा

 *  संस्करण **1.2.0**
 *  पछिल्लो अपडेट **9 वर्ष अघि**
 *  सक्रिय स्थापना **200+**
 *  वर्डप्रेस संस्करण ** 3.6 वा उच्च **
 *  जाँच गरिएको **5.0.30**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/date-calculator/)
 * ट्यागहरू
 * [calculate](https://ne.wordpress.org/plugins/tags/calculate/)[date](https://ne.wordpress.org/plugins/tags/date/)
 *  [उन्नत दृश्य](https://ne.wordpress.org/plugins/date-calculator/advanced/)

## रेटिङ्गहरू

 ५ मा 4.4 तारा।

 *  [  3 5-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/date-calculator/reviews/?filter=5)
 *  [  1 4-तारा समीक्षा     ](https://wordpress.org/support/plugin/date-calculator/reviews/?filter=4)
 *  [  1 3-तारा समीक्षा     ](https://wordpress.org/support/plugin/date-calculator/reviews/?filter=3)
 *  [  0 2-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/date-calculator/reviews/?filter=2)
 *  [  0 1-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/date-calculator/reviews/?filter=1)

[तपाईँको समीक्षा](https://wordpress.org/support/plugin/date-calculator/reviews/#new-post)

[सबै समीक्षाहरू हेर्नुहोस्](https://wordpress.org/support/plugin/date-calculator/reviews/)

## योगदानकर्ताहरू

 *   [ matthias.s ](https://profiles.wordpress.org/matthiass/)

## सहायता

केही भन्नु छ? सहयोग चाहियो?

 [सहायता फोरम हेर्नुहोस्](https://wordpress.org/support/plugin/date-calculator/)

## दान गर्नुहोस्

के तपाईँ यस प्लगिनको उन्नतिको लागि सहायता गर्न चाहनुहुन्छ?

 [ यो प्लगिनको लागि दान गर्नुहोस् ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K73Z3MNV82UTQ)