Date counter

Описание

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

Установка

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

Отзывы

07.10.2019
I have been looking for something like this for a long time! Thank you very much for such a great job!
04.06.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 🙂
08.11.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.09.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! 🙂
Посмотреть все 5 отзывов

Участники и разработчики

«Date counter» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Date counter» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.2

1.0.1

  • Just a first version of a Date counter plugin.