Compare date only

Hi guys,

I have a question regarding date comparison: I have two dates including the time and I want to compare the date only (so ignoring the time). Can you give me a hint which dateTime expression may work in that case?

Thanks a lot,
best regard,
Michael

Hi,

This is a little example to do just that, but in all honesty this is more of a JS question than it is N8N.

Please accept as solution if it resolves your problem.

reg,
J.

2 Likes

Hi @Mik3e

I’d just use .format('yyyy-MM-dd') and the built-in IF node for date/time comparison…

You can try something like this:

1 Like

Thanks a lot guys! Yes, you´re right - it´s more of a JS question.

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