What would the syntax be to diplay the current time UTC not local time?
]]>Hi,
I installed and activated the latest version of the plugin on WordPress 6.4.3.
I have added the following string in a paragraph on a page.
I'm [DatetimeDifference startDate="1981-09-15" endDate="now" format="Y"] years old.
The following text now appears on the page when it is loaded in the browser.
I'm [DatetimeDifference startDate="1981-09-15" endDate="now" format="Y"] years old.
This is not what I expected. In my opinion, the plugin does not work at all.
Did I do something wrong?
]]>Is there any way to change the font of this plugin to match our respective website’s font? Thank you!
]]>Hi,
Thank you very much for the great plugin, I really appreciate it.
My only question is, that which time zone uses the plugin or how can I setup my local time zone for counting of the differences? My local time zone setup in the general settings / WordPress dashboard is correct (Budapest – 12:25 at the sent of this post), but it seems, that the plugin use some other zone for the counting.
Thank you very much!
]]>Hello!
On our wedding website I would like a counter that shows the years, months and days that we have been married.
The days have already worked, but I have not yet discovered the code that also shows the years and months.
Do you have a code for this?
Many thanks in advance!
]]>I know it’s only a few strings, but still,
to which folder and under which name should be translation .mo file inserted in you plugin?
Mik
]]>What is the shortcode to show the date 182 days ago?
Thank you.
Hi,
I have created a booking form in my car parking web site, where the customer can select a check-in date and a check-out date, then select the type of car (small car 20€ per day, medium car 25€ per day, big car 30€ per day) from an item list field. The total price (number of days * 20 or 25 or 30€) should be calculated and showed in another form field, before to push the “Book” button in the form.
How could I do this using your plugin?
How I can adapt your example here below in order to get the startDate and endDate values from the check-in and check-out dates field of the booking form?
[TotalDatetimeDifference startDate=”now” endDate=”25.08.2025″ format=”d”]
I am going crazy, but I finally have found your plugin at least. I hope you can help me on this.
Thank you in advacne!
Hi thank you for this plugin
i using this code
[TotalDatetimeDifference startDate="now" endDate="23.09.2021 18:00" format="i"]
when time is end i get "0" (day)
is it possible to custumize output result whem time is end instead show 0 showing text i chose
]]>
Hello konstantin pankratov,
I have used the old format [DateCounter format=”currentYear”] in hundreds of posts in my blogs to display 2021.
But now, it shows DateCounter error: startDate attribute is required.
Does this mean I have to change [DateCounter format=”currentYear”] to [DateCounter format=”Y”] manually in every single post?
#help
]]>Hola! Necesito mostrar la fecha actual en la cabecera de mi sitio, he estado probando y no lo logré. Donde pongo la fnción now?? Gracias!!
]]>Errors like these are shown on my blog posts.
Notice: date_default_timezone_set(): Timezone ID ‘+00:00’ is invalid in /home2/domainname/public_html/wp-content/plugins/date-counter/DateCounter.php on line 14
Notice: Undefined index: startdate in /home2/domainname/public_html/wp-content/plugins/date-counter/DateCounter.php on line 21
Notice: Undefined index: enddate in /home2/domainname/public_html/wp-content/plugins/date-counter/DateCounter.php on line 27
What’s happening? I have recently updated to latest WordPress version.
]]>[DateCounter startDate="2003-06-08” endDate=”2021-02-25” format=”%y.%m”]
results in “Error: check endDate”
Have tried endDate=”Now” and format=”Years” but still same error message.
Any ideas?
]]>I have set my wordpress timezone to UTC +7 according to my timezone I lived now.
So, for now:
Universal time is 2021-01-13 18:28:33
and my Local time is 2021-01-14 01:28:33.
When I write [DateCounter format=”currentDay”], it always shows the output 13 (maybe refer to Universal Time?)
Is it possible to set the output to Local time? If so, how to make it?
]]>It seems is not longer working. After installing and activating the plugin, I′ve just added the shortcode as you could see below
[DateCounter startDate="2020-10-16" endDate="now" format="Days"]
hi!
I’ve found your plugin while searching for a script that could display a “counter from”-timer at my website. I want to make something like “X days, Y hours, Z minutes since the last BLAH BLAH”.
so I tried to add few shortcodes – eachone counting with different format, but that obviously didn’t worked. I also tried some custom formatting but with no luck.
I guess, that it is not possible with your plugin, am I right?
is it possible that you’d add an option/argument something like “group” so the counters could respect each others?
meaning:
[DateCounter startDate="2020-10-02 13:15" endDate="now" format="Days" group="my-test21]
[DateCounter startDate="2020-10-02 13:15" endDate="now" format="Hours" group="my-test21"]
[DateCounter startDate="2020-10-02 13:15" endDate="now" format="Minutes" group="my-test21"]
[DateCounter startDate="2020-10-02 13:15" endDate="now" format="Seconds" group="my-test21"]
and that would group them all to show correct values, something like in “regular” count-down timers. I guess that adding a new format could do the job, but grouping would give more possibilities [different combinations – days and hours only, minutes and seconds only etc.].
cheers!
edit: of course “my-test21” is just a random name that can be anything suitable for the moment, entered by user ??
]]>Is it possible to have the output display in weeks? For example with a plant, we say “The tomato plant is 12 weeks old”. I tried to change it to week or weeks, but that did not work. The first one is a correct output and is what I am currently using, but would love to be able to do the weeks.
I was planted [DateCounter startDate=”2020-07-01″ endDate=”now” format=”Days”] days ago.
I am [DateCounter startDate=”2020-07-01″ endDate=”now” format=”Weeks”] weeks old.
]]>It’s so very odd because this was working perfectly 1 hour ago. All I did since then was write a post. Here’s the code I’m using:
<h5 style="color:white">Hi! It's been [DateCounter startDate="2020-03-15" endDate="Now" format="Days"] days of quarantine.</h5>
I’m using v. 5.3.2
Thanks!
]]>