Current Method for Resetting Variables

Hi @qdmt, I haven’t got a specific answer to your question about using Create Date&Time within a scheduled task, but I have an alternative way of getting current Date&Time…

Use String Manipulation node! :slight_smile:

string(new Date())
This will return current date and time as a string as something like:

Mon Aug 14 13:22:47 BST 2023

which can then be converted to a DateTime using the following format mask:

E MMM d H:mm:ss z yyyy

For convenience, I now have this functionality wrapped in a component on the hub:

further information re String Manipulation’s undocumented features here

I don’t know though whether this will assist with your particular problem re Task Scheduler, but I would be interested to know.

2 Likes