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.
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.