AutomationFlowsGeneral › Set Close Date 3 Weeks Later

Set Close Date 3 Weeks Later

Original n8n title: Use Regex to Select Date

Use Regex To Select Date. Uses manualTrigger, noOp. Event-driven trigger; 6 nodes.

Event trigger★★★★☆ complexity6 nodes
General Trigger: Event Nodes: 6 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        250,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Check for Close Date",
      "type": "n8n-nodes-base.if",
      "position": [
        660,
        300
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json[\"Close Date\"]}}",
              "value2": "/\\d\\d\\d\\d-\\d\\d-\\d\\d/i",
              "operation": "regex"
            }
          ]
        },
        "combineOperation": "any"
      },
      "typeVersion": 1
    },
    {
      "name": "Set Close Date 3 Weeks Later",
      "type": "n8n-nodes-base.set",
      "position": [
        910,
        370
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "Close Date",
              "value": "={{new Date(new Date().setDate(new Date().getDate() + 21)).toISOString()}}"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1
    },
    {
      "name": "NoOp",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1140,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Set Close Date",
      "type": "n8n-nodes-base.set",
      "position": [
        450,
        300
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "Close Date",
              "value": "2021-11-29T00:00:00.000Z"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "name": "Set Close Date To Original",
      "type": "n8n-nodes-base.set",
      "position": [
        910,
        210
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "Close Date",
              "value": "={{$node[\"Set Close Date\"].json[\"Close Date\"]}}"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Set Close Date": {
      "main": [
        [
          {
            "node": "Check for Close Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Close Date": {
      "main": [
        [
          {
            "node": "Set Close Date To Original",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Close Date 3 Weeks Later",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Set Close Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Close Date To Original": {
      "main": [
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Close Date 3 Weeks Later": {
      "main": [
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Use Regex To Select Date. Uses manualTrigger, noOp. Event-driven trigger; 6 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Batch-convert CAD/BIM files to analysis-ready XLSX and optional DAE with automatic verification and a clean HTML report. Runs locally via and PowerShell on Windows.

Execute Command, Write Binary File
General

Community Node Disclaimer: This workflow uses KlickTipp community nodes.

N8N Nodes Klicktipp, Google Calendar Trigger, Google Calendar
General

Sync your Linear issues to Todoist automatically with this n8n workflow. When an issue is created, updated, or completed in Linear, a corresponding task is created, updated, or closed in Todoist. Trig

Todoist, Linear Trigger, Linear
General

Back up n8n workflows to Google Drive automatically This workflow provides a robust solution for backing up your n8n workflows to Google Drive. It is designed to handle backups for multiple n8n instan

Execute Workflow Trigger, n8n, Google Drive
General

This n8n workflow provides automated rsync backup capabilities between servers using password authentication. It automatically installs required dependencies, performs the backup operation from a sour

Execute Command