How to get the current date and make it a file name

Hello again. I want to get the current date today YYYMMDD and make it as a file name. How can i do that?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@reve , use the expression {{ $today.toFormat('yyyyMMdd') }}.

3 Likes