From f9ab0e8a762a2778aa569cc41c602276b59525d9 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Thu, 11 Aug 2022 06:48:42 +0200 Subject: [PATCH] docs: improve set current date wording --- apps/docs/docs/editor/blocks/logic/set-variable.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/docs/docs/editor/blocks/logic/set-variable.md b/apps/docs/docs/editor/blocks/logic/set-variable.md index d2b9f18b8..cddea31e7 100644 --- a/apps/docs/docs/editor/blocks/logic/set-variable.md +++ b/apps/docs/docs/editor/blocks/logic/set-variable.md @@ -24,12 +24,14 @@ It means you can apply operations on existing variables: ## Current Date -But also set the variable to the current date for example: +You can create a `Submitted at` (or any other name) variable using this code: ```js new Date().toISOString() ``` +It will set the variable to the current date and time. + ## Random ID Or a random ID: