Date counter

Beschreibung

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“].

Rezensionen

7. Oktober 2019
I have been looking for something like this for a long time! Thank you very much for such a great job!
4. Juni 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 🙂
8. November 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
12. September 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! 🙂
Lies alle 4 Rezensionen

Mitwirkende & Entwickler

„Date counter“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

Übersetze „Date counter“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.0.2

1.0.1

  • Just a first version of a Date counter plugin.