Title: Date counter
Author: Konstantin Pankratov
Published: <strong>28 mai 2018</strong>
Last modified: 19 decembre 2024

---

Search plugins

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

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

# Date counter

 Per [Konstantin Pankratov](https://profiles.wordpress.org/pankratovkm/)

[Download](https://downloads.wordpress.org/plugin/date-counter.zip)

 * [Details](https://oci.wordpress.org/plugins/date-counter/#description)
 * [Reviews](https://oci.wordpress.org/plugins/date-counter/#reviews)
 *  [Installation](https://oci.wordpress.org/plugins/date-counter/#installation)
 * [Development](https://oci.wordpress.org/plugins/date-counter/#developers)

 [Support](https://wordpress.org/support/plugin/date-counter/)

## Descripcion

Date counter – is just a 9 kilobytes WordPress plugin.

Easily display the current date or calculate the difference between two dates.

### Current date & time

    ```
    Current date & time: [CurrentDatetime format="d/m/Y H:i"].
    Current date & time: 05.07.2021 12:48.

    [CurrentDatetime format="jS F, Y"].
    6th July, 2021.

    It's [CurrentDatetime format="g:i A (e)"].
    It's 10:35 AM (UTC).
    ```

You can find all possible formats in [documentation](https://date-counter.kopa.pw/#current_datetime).

### Date & time difference

    ```
    I'm [DatetimeDifference startDate="1998-08-25" endDate="now" format="Y"] years old.
    I'm 23 years old now.

    [DatetimeDifference startDate="31.12.2020" endDate="now" format="a"] days have passed since the new year.
    187 days have passed since the new year.

    Tomorrow's trip at 14:35 (2:35 PM) starts in [DatetimeDifference startDate="now" endDate="07.07.2021 14:35" format="h hours & i minutes"].
    Tomorrow's trip at 14:35 (2:35 PM) starts in 8 hours & 34 minutes.
    ```

You can find all possible formats in [documentation](https://date-counter.kopa.pw/#datetime_difference).

### Total date & time difference

    ```
    The store will open in [TotalDatetimeDifference startDate="now" endDate="16.07.2021 8:00" format="i"] minutes today.
    The store will open in 19 minutes today.

    [TotalDatetimeDifference startDate="now" endDate="25.08.2025" format="d"] days left until my b-day.
    39 days left until my b-day.
    ```

You can find all possible formats in [documentation](https://date-counter.kopa.pw/#total_datetime_difference).

### 🤘Extra

#### Shift from today’s date: ± N days | ± N weeks | ± N months | ± N years

    ```
    [DatetimeDifference startDate="now" endDate="+1day" format="d"]
    [TotalDatetimeDifference startDate="-3years" endDate="now" format="d"]
    ```

#### Post created & modified date

    ```
    [DatetimeDifference startDate="post:created" endDate="now" format="d"]
    [TotalDatetimeDifference startDate="now" endDate="post:modified" format="d"]
    ```

## Installacion

 1. Upload the plugin files to the `/wp-content/plugins/date-counter` directory, or
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Place shortcode.

## Reviews

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

### 󠀁[simple but functional.](https://wordpress.org/support/topic/simple-but-functional-7/)󠁿

 [aprop](https://profiles.wordpress.org/aprop/) 10 junh 2024

I love this kind of plugin, that does what it promises and have no premium options.

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

### 󠀁[Love it…](https://wordpress.org/support/topic/love-it-3556/)󠁿

 [CBServices](https://profiles.wordpress.org/cbservices/) 15 julhet 2021 9 replies

Love it, but would like the option to count all minutes or hours from a specified
date.

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

### 󠀁[just what I was looking for](https://wordpress.org/support/topic/just-what-i-was-looking-for-480/)󠁿

 [lewis](https://profiles.wordpress.org/lewiswolk/) 22 març 2021

Amazing easy to setup plugin. I was able to achieve exactly what I wanted with this
plugin. Now on my front page at pipeworkpieces.com for potential customers I am 
able to easily change this from the back end based on my amount of orders. IMPORTANT
NOTES: Delivery on items are 2 -4 weeks based on current orders in production and
orders are scheduled to be made as they come in. If you place your order for your
piece today your piece is guaranteed to be ready for shipping on Mon, Apr 12 . Great
plugin

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

### 󠀁[Excellent and simple](https://wordpress.org/support/topic/excellent-and-simple-37/)󠁿

 [simplicitous](https://profiles.wordpress.org/simplicitous/) 31 octobre 2020

Thank you for this elegant and simple plugin that can save a bunch of time.

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

### 󠀁[Great !](https://wordpress.org/support/topic/great-10255/)󠁿

 [patowins](https://profiles.wordpress.org/patowins/) 7 octobre 2019

I have been looking for something like this for a long time! Thank you very much
for such a great job!

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

### 󠀁[Easy, light without too much code](https://wordpress.org/support/topic/easy-light-without-too-much-code/)󠁿

 [rafalryn](https://profiles.wordpress.org/rafalryn/) 4 junh 2019

Just as I needed. I made a little changed in code to seperate each digit and add
extra own css to present number of days always as typical counter 🙂

 [ Read all 8 reviews ](https://wordpress.org/support/plugin/date-counter/reviews/)

## Contributors & Developers

“Date counter” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ Konstantin Pankratov ](https://profiles.wordpress.org/pankratovkm/)

“Date counter” has been translated into 10 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/date-counter/contributors)
for their contributions.

[Translate “Date counter” into your language.](https://translate.wordpress.org/projects/wp-plugins/date-counter)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/date-counter/), check
out the [SVN repository](https://plugins.svn.wordpress.org/date-counter/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/date-counter/) by
[RSS](https://plugins.trac.wordpress.org/log/date-counter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.3

Fixed exception messages in DatetimeDifference and TotalDatetimeDiffrence classes.
Added support for creation and modification dates of the current post.

#### 2.0.0

Redesigned plugin: added new features and simplified general workflow.

#### 1.0.4

Added support for Time Zone management. You can now change the time zone using the
WordPress settings.

#### 1.0.2

 * Improved calculations
 * Added support for [PHP DateInterval::format](https://www.php.net/manual/ru/dateinterval.format.php)

#### 1.0.1

 * Just a first version of a Date counter plugin.

## Mèta

 *  Version **2.0.3**
 *  Last updated **1 annada ago**
 *  Active installations **1 000+**
 *  WordPress version ** 3.1 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 5.3 or higher **
 *  Languages
 * [Czech](https://cs.wordpress.org/plugins/date-counter/), [English (US)](https://wordpress.org/plugins/date-counter/),
   [German](https://de.wordpress.org/plugins/date-counter/), [Russian](https://ru.wordpress.org/plugins/date-counter/),
   [Slovak](https://sk.wordpress.org/plugins/date-counter/), [Spanish (Chile)](https://cl.wordpress.org/plugins/date-counter/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/date-counter/), [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/date-counter/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/date-counter/), [Spanish (Spain)](https://es.wordpress.org/plugins/date-counter/)
   e .[Spanish (Venezuela)](https://ve.wordpress.org/plugins/date-counter/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/date-counter)
 * Tags
 * [Counter](https://oci.wordpress.org/plugins/tags/counter/)[date](https://oci.wordpress.org/plugins/tags/date/)
   [days](https://oci.wordpress.org/plugins/tags/days/)[years](https://oci.wordpress.org/plugins/tags/years/)
 *  [Advanced View](https://oci.wordpress.org/plugins/date-counter/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/date-counter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/date-counter/reviews/)

## Contributors

 *   [ Konstantin Pankratov ](https://profiles.wordpress.org/pankratovkm/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/date-counter/)

## Far un don

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://buymeacoffee.com/ko.pa)