Easy Tech Tuts
n8n

How to Get Current Date in n8n Easily 2026

By Impran M N

Almost every automation eventually needs to know what day it is — for a timestamp on a logged row, a comparison against a due date, or an expiry check on a token. n8n gives you two ways to get there: a quick inline expression you type straight into a parameter, and a dedicated Date & Time node when you need real formatting and offset control. This guide covers both, plus the ISO-timestamp habit that keeps your data consistent once it starts flowing into other systems.

01Open your n8n workspace

Start from the Overview screen of your n8n instance, where every workflow, credential, and data table you have access to is listed. This is the same screen whether you're on n8n Cloud or a self-hosted instance, and it's where you'll either open an existing workflow or click Create workflow to start a fresh canvas for testing date expressions. The stats across the top — production executions, failure rate, run time — are a useful gut check before you start adding new logic, since a spike in failures is worth investigating before you build on top of it.

The n8n Overview screen, listing every workflow in the workspace along with execution stats at the top.
The n8n Overview screen, listing every workflow in the workspace along with execution stats at the top.

02Call the current date with an inline expression

The fastest route is to skip adding a node entirely. Click into any parameter field on any node, switch it to expression mode, and reference the current date directly using n8n's built-in variable — no extra step in your workflow just to know what day it is. This works well for quick uses like stamping a note field or filtering records, but because it returns a raw JavaScript date object, it's not always in a shape that plays nicely with every API you send it to.

03Add a Date & Time node when you need formatting

For anything more deliberate than a quick inline reference, drop a Date & Time node onto your canvas. Search for it from the node panel like you would any other node, and connect it after the trigger or step where you need the timestamp generated. This node exists specifically to turn a raw date into a clean, predictable string, which matters the moment that value needs to be compared, sorted, or stored somewhere outside n8n.

04Set the operation and pick a format

Inside the node, set the operation to format a date, then choose the output layout — day-month-year, year-month-day, or whatever your downstream system expects — along with the correct timezone. Getting the timezone right here matters more than it seems: a workflow that runs fine in testing can quietly log the wrong day once it's scheduled to run at midnight in a different region.

05Offset the date for past or future values

Most real workflows don't just want today — they want yesterday, seven days from now, or an expiry threshold thirty days out. The Date & Time node's offset option lets you add or subtract days and hours from the current timestamp to calculate exactly that kind of relative date, which is what you'll use for anything involving trial expirations, follow-up reminders, or rolling date-range filters.

06Check the output and standardize on ISO

Before wiring the date into the rest of your workflow, open the data preview pane and confirm the value looks the way you expect — right format, right timezone, right offset. If this value is heading to an external API or a CRM, format it as a standardized ISO timestamp rather than a locale-specific string; ISO keeps the structure consistent no matter which system reads it next, which saves you from parsing errors down the line. Once it checks out, drag a connection from the node into whatever step consumes the date.

FAQ

Frequently asked questions

Can I get the current date without adding an extra node?

Yes, you can use an inline expression inside any parameter field to reference the current date directly, without placing a separate node on the canvas.

How do I format the date differently in n8n?

Add a Date & Time node, set its operation to format a date, and choose the output layout and timezone you need.

Can n8n calculate a date in the future or past?

Yes. The Date & Time node has an offset option that adds or subtracts days and hours from the current timestamp, which is how you calculate things like tomorrow or a 30-day expiry.

Why would I use a standardized ISO timestamp?

ISO timestamps keep date formatting consistent when passing data to external APIs, CRMs, or databases, avoiding parsing errors caused by locale-specific date strings.

Does the timezone setting actually matter if I'm just testing?

Yes — a workflow that looks correct in manual testing can log the wrong date once scheduled, especially around midnight, if the timezone in the Date & Time node doesn't match where the workflow actually needs to run.

Watch the full walkthrough

The same steps, demonstrated on screen from start to finish.