HTTP Request - with parameter (two weeks ago)

hi

I have such URL in HTTP Request:
https://api…/getPostedInvoices?$filter=postingDate ge 2024-03-28

I need to change the date to expression that takes date two weeks ago
Can you help me?

Thanks!
K

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:

hello @Krzysztof_M

You can do it with Luxon
https://api…/getPostedInvoices?$filter=postingDate ge {{ $now.minus({"week":2}).toFormat("y-MM-dd") }}

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