I am trying to calculate the number of days since the start of the year in an automation, and am struggling to get it to calculate correctly.
I have tried various ways of doing it, and now have two variables:
YearStart: {{now.startOfMonth.withMonth(1)}}
NumberofDays: {{now.diff({{YearStart.toDate}}).days}}
When running it I get an error: Failed to get value for now().diff({{YearStart.toDate: {{now().diff({{YearStart.toDate}}).days}}
I am at a loss as to what to try next.