Date counter
Date counter
Description
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.
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.
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.
🤘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
- Upload the plugin files to the
/wp-content/plugins/date-counterdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Place shortcode.
Reviews
simple but functional.
By aprop on June 10, 2024
I love this kind of plugin, that does what it promises and have no premium options.
Love it...
By CBServices on July 15, 2021
just what I was looking for
By lewis (lewiswolk) on March 22, 2021
Excellent and simple
By simplicitous on October 31, 2020
Great !
By patowins on October 7, 2019
Easy, light without too much code
By rafalryn on June 4, 2019
Very Helpful Plugin
By vashax on November 8, 2018
Great plugin
By Highedge (benandtimmies) on September 12, 2018
Changelog
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
1.0.1
- Just a first version of a Date counter plugin.