I have 2 sharepoint date -ContractStartDate and ContractEndDate which are displayed as ddmmyyyyy in the list view. However, when I tried to concat these 2 fields as the new sharepoint folder name, Flow used ContractStartDate and ContractEndDate in mmddyyyy, The concat formula I used is as follows:
Would appreciate any help on how to make the concat formula used ContractStartDate and ContractEndDate as ddmmyyyy instead.
Try using formatDateTime function to format the date outputs: formatDateTime('<timestamp>', 'ddMMyyyy')
formatDateTime(utcNow(), 'ddMMyyyy') "2021-07-04T12:07:24.1117051Z" returns 04072021.
formatDateTime(triggerOutputs()?['body/ContractStartDate'], 'dd-MM-yyyy') formatDateTime(triggerOutputs()?['body/ContractStartEnd'], 'dd-MM-yyyy')
You may also want to check the Regional settings of the SharePoint site to ensure it matches your requirements:
Thanks for your help. Site Settings > regional was set correctly to the timezone I am in.
I tried formatDateTime to format output but I encountered this error during runtime. The expression I used is as follows. Did I missed any step?
Could you post a screenshot of the actual expressions used in Initialize varFolderName1.
The flow could be corrupt. Can you try recreating new flow from scratch solve the issue (use the ‘Save As’ feature to save a new Flow may fix it too).
The error you getting is related to a typo. You are using a wrong expression. See below expression in bold formatTimeDate. There is no such expression in flow called formatTimeDate. Change this to formatDateTime.
Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
Check out the new Power Platform Community Connections gallery!
Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.