I feel like I did 95% of the work but can’t figure out the simplest of things any insight would be amazing.
So, as you can see the flow is very simple, take 2 dates and calculate the number of days in between both dates.
at this moment I have the flow working with dummy data in the function node and just can’t figure out how to get the real dates to be placed instead of the dummy data
Ok, this question seems very basic (maybe that is why I couldn’t seem to find the answer in the documentation.
Hey @David_Go, you can read incoming data as described in these examples from the Function node documentation. It also supports all expressions (you wouldn’t need the curly braces around them in this case).
Edit: @Shirobachi beat me to it, so please ignore my example below
So a simple example populating your variables date1 and date2 using the incoming data from your Merge node could look like so:
@MutedJam - Thank you so very much for your help on this, this just opened up a whole new world in n8n for me. Works like a charm !
@Shirobachi Thanks for the helpful insight and I am totally having a blast with n8n! there is not a day that goes by without n8n and it just seems to be getting better and better each and every update that comes out.