Append Current Date + “ - “ + input Text not working

Hello, I am trying to append time (hour:min) followed by a hyphen followed by the input text to my daily note every time I trigger an Obsidian action by a shortcut.

However, the time and hyphen is missing with this combination of variables and only the input text makes it into the daily note

However if I concatenate time and e.g Device Details, both time, hyphen and the device details makes it.

Expected behavior for input prompt:

Action input prompt: hello world

Output in Daily Note:

22:20 - hello world

Current output in Daily Note:

hello world

Please advise.

Hi @Kevin_F, welcome to the forum, and thanks for checking out AFO!

However if I concatenate time and e.g Device Details, both time, hyphen and the device details makes it.

To me, this sounds like a case of using the wrong variable somewhere, i.e. setting var B with the contents of var A, and then later not using B but A. Could that be it?

Anyways, this should get you on the right track: