I found an easier formula in How to format date like this? - #2 by MutedJam : {{ $today.toFormat(‘yyyy-MM-dd’) }}
{ "meta": { "instanceId": "a4b9e677d0d9dc86afed299cb786a300c8a6e0ca557cb566a00de2a436814b34" }, "nodes": [ { "parameters": { "values": { "string": [ { "name": "today", "value": "={{ $today.toFormat('yyyy-MM-dd') }}" } ] }, "options": {} }, "name": "Set1", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 6020, 1700 ], "id": "c6b51d9f-35c2-4704-9934-d2dad20e8031" } ], "connections": {} }