How to change date format?

Hello! How do I change the date format in n8n expression? yyyMMddhhmmss << with this format. What I want to happen is every email trigger, it will change the file name to that format, it will not replace the previous email…

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 , you seem to be doing many date format changes lately. This time, instead of actual answer to your question, let me point you to the documentation where you can choose what you want and manage it on your own, Luxon formatting. In particular, pay attention to the Table of tokens which you can reference to when using toFormat() function.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.