Developer & DevOps
Extract today's date and day name using a function node
2 nodes
291
165
Automatic trigger
Workflow Description
A lightweight automation that retrieves the current date and day of the week when manually triggered, using a JavaScript function node to process temporal data dynamically without external integrations.
How it works
- 1.Trigger the workflow manually using the manual trigger button
- 2.Execute a JavaScript function to extract today's date and day name
- 3.Output the results as variables for use in subsequent workflow steps
Use cases
- Add timestamps to logs and operational records
- Embed date and day information in email notifications and alerts
- Extract date data for downstream data processing and conditional logic
Requirements
- Access to n8n platform with permission to execute workflows manually
- Basic familiarity with JavaScript date and time methods
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
291
Downloads
165
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (2)
On clicking 'execute'
Manual Trigger
Function
Function