Simple question about date-strings

Hi guys.

I just can’t seem to make this string work.

Command: !test
Response: Todays date is: (currenttime Europe/Copenhagen, dd. MMMM, yyyy)

Unfortunately, I don’t understand the string-setup, primily the use of .

I use a string like this (“dd. MMMM’, 'yyyy HH:mm:ss”) in a .js file, but that doesn’t seem to help me much.

When the above works as expected, I want to insert day (E), but again, not sure how to.

I am trying hard to understand the syntax of these time/date-strings, but I can’t figure out the logic of it.


The tag (currenttime) is not related to streamInfo.js which you previously edited. Use the tag as specified in the FAQ:

Hi @BantomPhot

I already use that string for time, but trying to make a ‘date-only’-string.

like ‘Wednesday, 22. april, 2019’.


Oh, I see. The easiest way is not to use comma before the year, it break the tag.

1 Like

Much better! As simple as that :smiley:


If you want comma so much, then use this:

(currenttime Europe/Copenhagen, dd. MMMM',' yyyy)

1 Like

I was SO close to figure it out myself, but I was missing a ‘space’ in the right place :smiley:

You are my man! :smiley:

Tbh, at first I was sure it couldn’t work that way. Then I looked inside customCommands.js and was like “Hell, why not?”. So the result was almost your variant with a small change :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.