Title: Date counter
Author: Konstantin Pankratov
Published: <strong>2018 年 5 月 28 日</strong>
Last modified: 2024 年 12 月 19 日

---

搜尋外掛

![](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

 由 [Konstantin Pankratov](https://profiles.wordpress.org/pankratovkm/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/date-counter/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/date-counter/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/date-counter/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/date-counter/#developers)

 [技術支援](https://wordpress.org/support/plugin/date-counter/)

## 外掛說明

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

## 安裝方式

 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.

## 使用者評論

![](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/) 2024 年 6 月 10 日

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/) 2021 年 7 月 15 日 9 則
留言

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/) 2021 年 3 月 22 日

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/) 2020 年 10 月 31 日

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/) 2019 年 10 月 7 日

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/) 2019 年 6 月 4 日

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 🙂

 [ 閱讀全部 8 則使用者評論 ](https://wordpress.org/support/plugin/date-counter/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Date counter〉的開發相關工作。

參與者

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

〈Date counter〉外掛目前已有 10 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/date-counter/contributors)
為這個外掛做出的貢獻。

[將〈Date counter〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/date-counter)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/date-counter/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/date-counter/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/date-counter/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/date-counter/)。

## 變更記錄

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

## 中繼資料

 *  版本 **2.0.3**
 *  最後更新 **1 年前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 5.3 或更新版本 **
 *  語言
 * [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/)、
   及 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/date-counter/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/date-counter)
 * 標籤:
 * [Counter](https://tw.wordpress.org/plugins/tags/counter/)[date](https://tw.wordpress.org/plugins/tags/date/)
   [days](https://tw.wordpress.org/plugins/tags/days/)[years](https://tw.wordpress.org/plugins/tags/years/)
 *  [進階檢視](https://tw.wordpress.org/plugins/date-counter/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  8 個 5 星使用者評論     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/date-counter/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/date-counter/reviews/)

## 參與者

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

## 技術支援

最近 2 個月解決的問題:

     總計 1 個問題，已解決 0 個

 [檢視技術支援論壇](https://wordpress.org/support/plugin/date-counter/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://buymeacoffee.com/ko.pa)