I have this workflow to get items from sharepoint and build an excel sheet file and table:-
Inside "Select related Data 2' i am using this format for the created date `if(empty(item()?['Created']),'',formatDateTime(item()?['Created'],'dd-MM-yyyy'))`.
now when i get the excel sheet , i can see that some dates are showing correctly as dd/mm/yyyy for example 13 Febrauary 2025, while other are showing as mm/dd/yyyy.. so we have items created on 2 November 2025 (which is in the future).. as follow:-
my local setting on the PC following the UK format, and also the site regional setting .. and the date will be returned in the following format from the Get Item action:-
so why some excel rows have the date format wrongly? Thanks in advance for any help.