Hello guys, I have "Date" column in SP list. In Format 'dd/MM/yyyy'.
And in Power Automate I need to write if current date - date from SP list > 30 days, than delete this row.
I've found in one video line of code and I tried to use it in my flow:
div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(outputs('Get_items_from_SP_list:_audit_template__CS')?['body/Date'])),864000000000). So in flow it looks like this (I used greater than one just for testing)
But I got this error
I have checked name of columns is right. It is new error. Error before was Unable to process template language expressions in 'formatDateTime. So maybe problem is in data format that I use 'dd/MM/yyyy', can you please help me to rewrite this line of code