Skip to content
Discussion options

You must be logged in to vote

Currently, the Timestamp variable does not support this, but I will see that I can add support for this in the next version of the app.

Until then, you can try this workaround:

  1. Instead of a Timestamp variable, create a Static Variable. Let's assume it is called "myTimestamp"
  2. Edit your shortcut and go to "Scripting"
  3. In the "Run before Execution" text field, insert the following code snippet:
const timestamp = (new Date()).toISOString().replaceAll(/[^0-9]/g, '');
setVariable("myTimestamp", timestamp);

This will generate a timestamp in ISO string format (e.g. "2026-06-06T14:31:15.762Z"), strip all non-digit characters from it, and then assign the resulting value into the "myTimestamp" glob…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@superuser-does
Comment options

@superuser-does
Comment options

Answer selected by superuser-does
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants