cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SamGibbs
Helper III
Helper III

date changing unexpectedly when using flow

Hi all,

 

I am having an issue with a date storing in SharePoint as US style instead of UK style. The Flow is being used to upload documents from a PowerApp to SharePoint, and then update the metadata for the document. However, although the PowerApp and SharePoint are set up correctly there appears to be something in the flow that is causing an issue.

 

I have looked at the inputs and outputs of the flow and this appears to be the issue:

 

Input:

input.png

 

Output:

output.png

 

The output has changed it from day-month-year to year-day-month. SharePoint is then interpreting this as Year-Month-Day, causing the date to save wrong (or not at all if it is an impossible date).

 

Any suggestions on what I am missing in the flow to correct this? It currently looks like:

flow.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @SamGibbs ,

 

Glad that your issue is solved now.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
SamGibbs
Helper III
Helper III

Hi again,

 

after the long post I found the solution here https://powerusers.microsoft.com/t5/General-Power-Automate/How-to-change-Flow-date-from-YYYY-DD-MM-t...

 

in short, I had to wrap the 'ask in powerapps' in a format formula

formatDateTime(triggerBody()['Updatefileproperties_MeetingDate'],'dd/MM/yyyy')
v-alzhan-msft
Community Support
Community Support

Hi @SamGibbs ,

 

Glad that your issue is solved now.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,203)