Title: Date counter
Author: Konstantin Pankratov
Published: <strong>28. maj, 2018</strong>
Last modified: 19. december, 2024

---

Søg 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

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

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

 * [Detaljer](https://da.wordpress.org/plugins/date-counter/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/date-counter/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/date-counter/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/date-counter/#developers)

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

## Beskrivelse

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

## Installation

 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.

## Anmeldelser

![](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. juni, 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. juli, 2021 9 svar

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. marts, 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. oktober, 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. oktober, 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. juni, 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 🙂

 [ Læs alle 8 anmeldelser ](https://wordpress.org/support/plugin/date-counter/reviews/)

## Bidragsydere & udviklere

“Date counter” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

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

“Date counter” er blevet oversat til 10 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/date-counter/contributors)
for deres bidrag.

[Oversæt “Date counter” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/date-counter)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/date-counter/), tjek
[SVN repository](https://plugins.svn.wordpress.org/date-counter/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/date-counter/) via [RSS](https://plugins.trac.wordpress.org/log/date-counter/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

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

 *  Version **2.0.3**
 *  Senest opdateret **1 år siden**
 *  Aktive installationer **1.000+**
 *  WordPress-version ** 3.1 eller højere **
 *  Testet op til **6.8.5**
 *  PHP-version ** 5.3 eller højere **
 *  Sprog
 * [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/)
   og [Spanish (Venezuela)](https://ve.wordpress.org/plugins/date-counter/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/date-counter)
 * Tags
 * [Counter](https://da.wordpress.org/plugins/tags/counter/)[date](https://da.wordpress.org/plugins/tags/date/)
   [days](https://da.wordpress.org/plugins/tags/days/)[years](https://da.wordpress.org/plugins/tags/years/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/date-counter/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

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

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/date-counter/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://buymeacoffee.com/ko.pa)