Title: Date counter
Author: Konstantin Pankratov
Published: <strong>28 Tháng 5, 2018</strong>
Last modified: 19 Tháng 12, 2024

---

Tìm kiếm plugin

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

 Bởi [Konstantin Pankratov](https://profiles.wordpress.org/pankratovkm/)

[Tải về](https://downloads.wordpress.org/plugin/date-counter.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/date-counter/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/date-counter/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/date-counter/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/date-counter/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/date-counter/)

## Mô tả

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

## Cài đặt

 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.

## Đánh giá

![](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 Tháng 6, 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 Tháng 7, 2021 9 trả
lời

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 Tháng 3, 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 Tháng 10, 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 Tháng 10, 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 Tháng 6, 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 🙂

 [ Đọc tất cả 8 đánh giá ](https://wordpress.org/support/plugin/date-counter/reviews/)

## Người đóng góp & Lập trình viên

“Date counter” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

“Date counter” đã được dịch qua 10 ngôn ngữ. Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/date-counter/contributors)
vì đóng góp của họ.

[Dịch “Date counter” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/date-counter)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/date-counter/), check out
[SVN repository](https://plugins.svn.wordpress.org/date-counter/), hoặc theo dõi
[nhật ký phát triển](https://plugins.trac.wordpress.org/log/date-counter/) qua [RSS](https://plugins.trac.wordpress.org/log/date-counter/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

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

 *  Phiên bản **2.0.3**
 *  Cập nhật lần cuối **1 năm trước**
 *  Số lượt cài đặt **1.000+**
 *  Phiên bản WordPress ** 3.1 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.8.5**
 *  Phiên bản PHP ** 5.3 hoặc cao hơn **
 *  Ngôn ngữ
 * [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/),
   và [Spanish (Venezuela)](https://ve.wordpress.org/plugins/date-counter/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/date-counter)
 * Thẻ
 * [Counter](https://vi.wordpress.org/plugins/tags/counter/)[date](https://vi.wordpress.org/plugins/tags/date/)
   [days](https://vi.wordpress.org/plugins/tags/days/)[years](https://vi.wordpress.org/plugins/tags/years/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/date-counter/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  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)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/date-counter/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Các lỗi đã xử lý trong vòng hai tháng gần đây:

     0 trên 1

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/date-counter/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://buymeacoffee.com/ko.pa)