Blockly Compare dates

Dear all,
i am trying to check whether a datetime item is today or tomorrow with Blockly. However, i am not able to do this.
This is where i am currenly stuck:

But i am getting this error after runing the script:

2022-02-17 20:34:33.800 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID '04bec6014a' failed: TypeError: "Abfallkalender_StartdesnachstenEintrags".format is not a function in <eval> at line number 12

Can maybe someone help?
Thank you alot! :slight_smile:

Use Date and Time. You can install it from Settings → Automation in MainUI.

This worked great! Thank you :slight_smile:

Please share your solution. Screenshot of Blockly-Script.