Support of RFC3339 (or ISO string) for Date & Time node

I think it would be very versatile, if the Date & Time node also supported the standard RFC3339 format.

You can do right now, just set the format using custom formats. Check the example below.

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {
        "value": "={{$node[\"Function\"].json[\"now\"]}}\n",
        "dataPropertyName": "now",
        "custom": true,
        "toFormat": "YYYY-MM-DDTHH:mm:ssZ",
        "options": {}
      },
      "name": "Date & Time",
      "type": "n8n-nodes-base.dateTime",
      "typeVersion": 1,
      "position": [
        730,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "return [ { json: { now: \"2021-06-01\" }  }]"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        510,
        300
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Function": {
      "main": [
        [
          {
            "node": "Date & Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
1 Like

Ah, alright. Thanks :slight_smile: