Date counter

Descrizione

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

Installazione

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

Recensioni

7 Ottobre 2019
I have been looking for something like this for a long time! Thank you very much for such a great job!
4 Giugno 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 Novembre 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 Settembre 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! 🙂
Leggi tutte le recensioni di 5

Contributi e sviluppo

“Date counter” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Traduci “Date counter” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

1.0.2

1.0.1

  • Just a first version of a Date counter plugin.