Workflow: Manual Import

Workflow Details

Download Workflow
{
    "id": "140",
    "name": "Get today's date and day using the Function node",
    "nodes": [
        {
            "name": "On clicking 'execute'",
            "type": "n8n-nodes-base.manualTrigger",
            "position": [
                250,
                300
            ],
            "parameters": [],
            "typeVersion": 1
        },
        {
            "name": "Function",
            "type": "n8n-nodes-base.function",
            "position": [
                450,
                300
            ],
            "parameters": {
                "functionCode": "var date = new Date().toISOString();\nvar day = new Date().getDay();\nconst weekday = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\nitems[0].json.date_today = date;\nitems[0].json.day_today = weekday[day];\n\nreturn items;"
            },
            "typeVersion": 1
        }
    ],
    "active": false,
    "settings": [],
    "connections": {
        "On clicking 'execute'": {
            "main": [
                [
                    {
                        "node": "Function",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

Manual Rssfeedread Automate Triggered
View
Googlebigquery Stickynote Automate Triggered
View
Receive updates when a subscriber is added through a form in ConvertKit
View
Image Generation API
View
Slack Readbinaryfile Create
View
Error Gmail Send Triggered
View
AI Agent to chat with you Search Console Data, using OpenAI and Postgres
View
Graphql Discord Automate Scheduled
View
Manual Comparedatasets Automate Triggered
View
Jiratool Schedule Create Scheduled
View