Hello, i got a Power Automate Flow where I read out an excel list and which contains many different values but also some date values and I pass it into a Sharepoint list. In the excel list formatted all of the columns as a date in the same format and I choosed the ISO 8601 DateTime format in Power Automate. The first 4 columns are formatted right but the next 4 are formatted as numbers. I tried some different things but I dont know how to fix it. I heard of the function FormatDateTime that can convert the numerical values into date values but the problem ist that I already use this function "if(or(equals(outputs('Auftragsstart'),''), equals(outputs('Auftragsstart'),'#NV')), null, outputs('Auftragsstart'))" to leave the Sharepoint column blank if the excel column was blank because otherwise there was an error. For that I first use compose actions where I put in the single date values. Does someone know either a solution that all values from excel come as a date or if I let all date values come as a number how to rewrite the function so that Im using the FormatDateTime combined with the function that if a column is empty.
If i didn't mentioned something important just ask then i will answer