Developer & DevOps

Get today's date and day using function node

2 nodes 194 134 Automatic trigger
Download

Workflow Description

A streamlined automation template using a function node to extract today's date and current day name in a programmable format, providing a foundation for date-dependent workflows and time-based automations.

How it works

  1. 1.Trigger the workflow manually using the Manual Trigger node
  2. 2.Execute JavaScript code in the Function node to retrieve the current date and day name
  3. 3.Return the formatted results as JSON data for downstream processing steps

Use cases

  • Automatically embed the current date and day in emails or generated documents
  • Execute different tasks based on the day of the week
  • Timestamp records in databases with precise date and time information

Requirements

  • Basic understanding of JavaScript or simple coding operations
  • Familiarity with working with date and time objects in programming environments

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Manual Trigger Code

Details

Trigger Automatic trigger
Nodes 2
Apps 2
Views 194
Downloads 134

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (2)

On clicking 'execute'

Manual Trigger

#1

Function

Function

#2