Date counter

Description

Date counter – is just a 3 kilobytes WordPress plugin that allows you to add a shortcode to count difference between two dates using start and end dates or display the current date easily.

Format options

  • currentYear – displays the current Year
  • currentMonth – displays the current Month
  • currentDay – displays the current Day

Don’t need anymore to change copyright year in footer each year!

INPUT:  Copyright © [DateCounter format="currentYear"].
OUTPUT: Copyright © 2020.
  • Years – displays the difference in Years
  • Months – displays the difference in Months
  • Weeks – displays the difference in Weeks
  • Days – displays the difference in Days
  • Hours – displays the difference in Hours
  • Minutes – displays the difference in Minutes
  • Seconds – displays the difference in Seconds

Example:

INPUT:  I'm [DateCounter startDate="1998-08-25" endDate="now" format="Years"] years old!
OUTPUT: I'm 21 years old!

Example:

INPUT:  It's been [DateCounter startDate="2019-08-31" endDate="2019-09-15" format="%a"] days since the end of summer :(
OUTPUT: It's been 15 days since the end of summer :(

startDate and endDate options

  • Any date format: 01.01.1991, 01-01-1991, 1991.01.01, 1991-01-01
  • Now – gets current date and time

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 [DateCounter startDate=”date” endDate=”date” format=”outputFormat”].

Reviews

October 7, 2019
I have been looking for something like this for a long time! Thank you very much for such a great job!
June 4, 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 🙂
November 8, 2018
Thank you very much for the most amazing plugin. I was searching like mad for this feature online, I searched everywhere for the last 3 days and finally, I came on wordpress.org and I was so lucky to find your plugin. Thanks a lot again. God Bless You. Vashax
September 12, 2018
Thanks for the great plugin! Exactly what I was looking for for my project. I'm using it to automatically show the days until a booking reservation. Perfect! 🙂
Read all 4 reviews

Contributors & Developers

“Date counter” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Date counter” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.2

1.0.1

  • Just a first version of a Date counter plugin.