Title: Date counter
Author: Konstantin Pankratov
Published: <strong>28 de Maio, 2018</strong>
Last modified: 19 de Decembro, 2024

---

Buscar 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

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

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

 * [Detalles](https://gl.wordpress.org/plugins/date-counter/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/date-counter/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/date-counter/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/date-counter/#developers)

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

## Descrición

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

## Instalación

 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.

## Comentarios

![](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 de Xuño, 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 de Xullo, 2021 9 respostas

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 de Marzo, 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 de Outubro, 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 de Outubro, 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 de Xuño, 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 🙂

 [ Ler todas as 8 opinións ](https://wordpress.org/support/plugin/date-counter/reviews/)

## Colaboradores e desenvolvedores

“Date counter” é un software de código aberto. As seguintes persoas colaboraron 
con este plugin.

Colaboradores

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

“Date counter” foi traducido a 10 idiomas. Grazas [aos desenvolvedores](https://translate.wordpress.org/projects/wp-plugins/date-counter/contributors)
polas súas contribucións.

[Traduce “Date counter” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/date-counter)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/date-counter/), bota
unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/date-counter/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/date-counter/)
por [RSS](https://plugins.trac.wordpress.org/log/date-counter/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 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.

## Meta

 *  Versión **2.0.3**
 *  Última actualización **Fai 1 ano**
 *  Instalacións activas **1.000+**
 *  Versión de WordPress ** 3.1 ou superior **
 *  Probado ata **6.8.5**
 *  Versión de PHP ** 5.3 ou superior **
 *  Idiomas
 * [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/).
 *  [Traduce ao teu idioma](https://translate.wordpress.org/projects/wp-plugins/date-counter)
 * Etiquetas
 * [Counter](https://gl.wordpress.org/plugins/tags/counter/)[date](https://gl.wordpress.org/plugins/tags/date/)
   [days](https://gl.wordpress.org/plugins/tags/days/)[years](https://gl.wordpress.org/plugins/tags/years/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/date-counter/advanced/)

## Valoracións

 5 de 5 estrelas

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

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

[Ver todas as valoracións](https://wordpress.org/support/plugin/date-counter/reviews/)

## Colaboradores

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

## Soporte

Problemas resoltos nos últimos dous meses:

     0 de 1

 [Ver o foro de soporte](https://wordpress.org/support/plugin/date-counter/)

## Doar

Queres apoiar o progreso deste plugin?

 [ Dona a este plugin ](https://buymeacoffee.com/ko.pa)