{ "name": "Current UTC Date and Weekday", "nodes": [ { "name": "On clicking 'execute'", "type": "n8n-nodes-base.manualTrigger", "position": [ 250, 300 ], "parameters": {}, "typeVersion": 1, "id": "current-utc-date-and-weekday-trigger" }, { "id": "current-utc-date-and-weekday-calculate", "name": "Format one UTC instant", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ 500, 300 ], "parameters": { "mode": "runOnceForEachItem", "jsCode": "function currentUtcDay() {\n const instant = new Date(Date.now());\n const weekdays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n return { date_today: instant.toISOString(), day_today: weekdays[instant.getUTCDay()] };\n}\n\nreturn { json: currentUtcDay() };" } } ], "active": false, "settings": { "executionOrder": "v1", "timezone": "UTC" }, "connections": { "On clicking 'execute'": { "main": [ [ { "node": "Format one UTC instant", "type": "main", "index": 0 } ] ] } }, "pinData": {} }