Title: Shortcode for Current Date
Author: Imtiaz Rayhan
Published: <strong>7 Tháng 5, 2017</strong>
Last modified: 22 Tháng 12, 2025

---

Tìm kiếm plugin

![](https://ps.w.org/shortcode-for-current-date/assets/banner-772x250.png?rev=2898050)

![](https://ps.w.org/shortcode-for-current-date/assets/icon-256x256.png?rev=2898049)

# Shortcode for Current Date

 Bởi [Imtiaz Rayhan](https://profiles.wordpress.org/imtiazrayhan/)

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

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

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

## Mô tả

**Shortcode for Current Date** enables you to put current date, current month or
current year anywhere in your WordPress site with a simple shortcode.

Just use the shortcode **[current_date]** and when the post or page is displayed,**[
current_date]** will be replaced by the current date. And the date will be translated
according to your site settings.

By default it will show a date like this: 7th May 2017

But you can customize it to your needs. To do that, you’ll need to pass the date
format using an attribute with the shortcode.
 Here are some examples:

**[current_date format=’d/m/Y’]** will show the date like this: **07/05/2017**
 **[
current_date format=’F d, Y’]** will show the date like this: **May 07, 2017**

If you don’t understand how this formatting works, that’s totally okay.

### Gutenberg Block

If you are using Gutenberg editor, there’s a Current Date block you can use to insert
the current date in your posts/pages.

If you use the block, you will not have to use the shortcode.

When you insert the block, on the right sidebar under block options you will see
a field to put the format for the date.

### Styling

You can use ‘size’ and ‘color’ attributes to style the date.

For example, [current_date format=’d/m/Y’ size=’20px’ color=’#FF0000′]

#### What’s Next

If you like this plugin, then consider checking out our other plugins:

 * [WP Table Builder](https://wordpress.org/plugins/wp-table-builder/) – Drag and
   Drop Table Builder Plugin. Build Responsive Tables insanely easily.
 * [Ultimate Blocks](https://wordpress.org/plugins/ultimate-blocks/) – Create Better
   Content with Gutenberg + Ultimate Blocks. Essential Collection of Blocks for 
   Bloggers and Affiliate Marketers.
 * [WP Coupons and Deals](https://wordpress.org/plugins/wp-coupons-and-deals/) –
   Make More Money from Your Affiliate Coupons and Deals.

Visit [WPLeaders](http://www.wpleaders.com/) to learn more about WordPress, WordPress
themes and plugins.

## Khối

Plugin này cung cấp 1 khối.

 *   Current Date

## Cài đặt

This is one way you can install the plugin:

 1. Download the plugin from WordPress plugin repository and upload the zip file in‘
    Add New’ under ‘Plugins’.
 2. Activate the plugin.

Another way :

 1. From WordPress dashboard, go to Add New under Plugins section.
 2. Search for ‘Shortcode for Current Date’
 3. From search results, click on ‘Shortcode for Current Date’.
 4. Click on Install button and activate the plugin.

## Đánh giá

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

### 󠀁[Not working in page title (SEO)](https://wordpress.org/support/topic/not-working-in-page-title-seo/)󠁿

 [ucscode](https://profiles.wordpress.org/ucscode/) 18 Tháng 4, 2025

This works perfectly everywhere except for page <title> where the [current_date …]
syntax is display unchanged on the tab and in search engines

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

### 󠀁[Neat little plugin](https://wordpress.org/support/topic/neat-little-plugin-13/)󠁿

 [ingridskard](https://profiles.wordpress.org/ingridskard/) 22 Tháng 5, 2023

Does the trick.

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

### 󠀁[Nice Tool](https://wordpress.org/support/topic/nice-tool-188/)󠁿

 [Hermann Matthias](https://profiles.wordpress.org/matthy99/) 9 Tháng 11, 2023

very helpful – thanks

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

### 󠀁[This thing is a gem!](https://wordpress.org/support/topic/this-thing-is-a-gem/)󠁿

 [](https://profiles.wordpress.org/onakublogger/) 7 Tháng 3, 2022

Super simple to use… and it works every time! Have had no issues with it whatsoever.
Thank you!!!

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

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

 [smac62](https://profiles.wordpress.org/smac62/) 19 Tháng 8, 2021

Great Plugin to have, works beautifully

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

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

 [rumaildeveloper](https://profiles.wordpress.org/rumaildeveloper/) 30 Tháng 3, 
2021

I used for jet elements linsting grid: Post query > Meta Query: value ShorCode and
its works!!!!!

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

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

“Shortcode for Current Date” 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

 *   [ Imtiaz Rayhan ](https://profiles.wordpress.org/imtiazrayhan/)
 *   [ UN_Rick ](https://profiles.wordpress.org/un_rick/)
 *   [ WP Coupons and Deals ](https://profiles.wordpress.org/wpcdplugin/)
 *   [ Ultimate Blocks ](https://profiles.wordpress.org/ultimateblocks/)
 *   [ WPLeaders ](https://profiles.wordpress.org/wpleaders1/)
 *   [ WP Table Builder ](https://profiles.wordpress.org/wptb/)
 *   [ Istiak Rayhan ](https://profiles.wordpress.org/istiakrayhan/)

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

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

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

## Nhật ký thay đổi

#### 2.2.2

 * Tested with WordPress 6.9

#### 2.2.0

 * Tested with WordPress 6.7

#### 2.1.9

 * WordPress 6.2 compatible.

#### 2.1.8

 * WordPress 6.1 compatible.

#### 2.1.7

 * Security updates.

#### 2.1.5

 * Security issue fix.

#### 2.1.4

 * FIX: Style.css not found issue.

#### 2.1.3

 * FIX: Dependency missing issue.
 * FIX: Error when Gutenberg is not available.
 * FIX: Deprecated PHP notice.

#### 2.1.2

 * ADD: Gutenberg Block for Adding Current Date.

#### 2.1.1

 * FIX: Preserving old shortcode output.

#### 2.1.0

 * ADD: Option to Control Font Size.
 * ADD: Option to Control Font Color.
 * ADD: CSS Class to Control Style Globally.

#### 2.0.8

 * Tested with WordPress 5.4.

#### 2.0.7

 * Tested with latest WordPress version.
 * Removed admin notice about other plugin.

#### 2.0.6

 * Tested with WordPress 5.2.

#### 2.0.5

 * Tested with WordPress 5.1.

#### 2.0.4

 * Tested with WordPress 5.0.3.
 * Updated some links.

#### 2.0.3

 * Used date_i18n() function to make the date translated according to site settings.
   Thanks to @themezee

#### 2.0.1

 * Tested with WordPress 5.0.
 * Settings and Welcome page Changes.

#### 2.0.0

 * Tested with WordPress 5.0.

#### 1.2.5

 * Fix – Day Number of the Year bug.

#### 1.2.4

 * Add – Shortcode execution in Post Title.

#### 1.2.3

 * Fixed a bug.
 * Added WP current_time funtion instead of date function to retrieve WP time instead
   of server time. Thanks to Rick Carter.

#### 1.2.2

 * Tested with WordPress 4.9

#### 1.2.1

 * Fixed a bug.

#### 1.2

 * Added a Menu item to quickly access the date formats.

#### 1.1

 * Added a welcome page.

#### 1.0

 * Initial Release

## Meta

 *  Phiên bản **2.2.2**
 *  Cập nhật lần cuối **7 tháng trước**
 *  Số lượt cài đặt **10.000+**
 *  Phiên bản WordPress ** 5.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.5**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/shortcode-for-current-date/)
 * Thẻ
 * [current date](https://vi.wordpress.org/plugins/tags/current-date/)[month](https://vi.wordpress.org/plugins/tags/month/)
   [shortcode](https://vi.wordpress.org/plugins/tags/shortcode/)[year](https://vi.wordpress.org/plugins/tags/year/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/shortcode-for-current-date/advanced/)

## Đánh giá

 5 trên 5 sao.

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

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

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

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

 *   [ Imtiaz Rayhan ](https://profiles.wordpress.org/imtiazrayhan/)
 *   [ UN_Rick ](https://profiles.wordpress.org/un_rick/)
 *   [ WP Coupons and Deals ](https://profiles.wordpress.org/wpcdplugin/)
 *   [ Ultimate Blocks ](https://profiles.wordpress.org/ultimateblocks/)
 *   [ WPLeaders ](https://profiles.wordpress.org/wpleaders1/)
 *   [ WP Table Builder ](https://profiles.wordpress.org/wptb/)
 *   [ Istiak Rayhan ](https://profiles.wordpress.org/istiakrayhan/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

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

## Ủ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://www.paypal.me/imtiazrayhan/)