I am very knew to the power platform. I am trying to create a flow that migrates data from XLS (imported from sharepoint list) to Sharepoint online list using a work flow. When trying to create list item for a date field i keep getting error:
"Unable to process template language expressions in action 'Create_item' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'."
I read that it was tricky importing dates, so this is what i did, i have three date fields, so i initialized 3 variables, i was told to use string.

Next i set each variable the value from the excel file (value).

Then in my create item, i apply the expression addDays('1899-12-30',int(variables('varDate2')),'mm/dd/yyyy')

I am assuming something about the variable cannot be set to int? I cannot figure out why. Any help would be appreciated
EDIT: When i look at the input, i notice that the date bing input contains the time, so i tried to remove it by updating my expression an adding int(first(split(variables(‘varDate1’), ‘.’))), but i still get the error
