Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

SharePoint - wrong dates in list

(0) ShareShare
ReportReport
Posted on by 4

Hello,

I am new to Flow and I try to use it with our on-prem Sharepoint and I seem to do something wrong.

 

Following simple flow:

- Read a SP list, filters out everything that has today or less in single field.

- Create HTML table from it.

- Send email with HTML table.

 

Filtering logic looks fine, but output has a date with day before, ie. SP has 06.02.2019 - Email has 05.02.2019.

On testing runs, it seems wrong data are already picked in "Read from SP" step.

Out SP has UTC+1 time zone - can that be the problem?

If convert timezone is way to go, how can I just apply conversion to SP data and send correct result to HTML table?

 

Kind thanks for any advice!

  • DK_MSW Profile Picture
    4 on at
    Re: SharePoint - wrong dates in list

    Hi,

    UTC difference - that was what confused me - we have UTC +1, but difference is a whole day.

    Your example was very helpful and I was able to achieve what was needed with AddDays expression.

     

    Thank You!

  • Verified answer
    v-yuazh-msft Profile Picture
    on at
    Re: SharePoint - wrong dates in list

    Hi @DK_MSW,

     

    How long is the time difference between your sharepoint lime and the utc time?

    What is the column in your sharepoint list to save the date?

     

    I have made a test to create a "Date" column in my sharepoint list to save the date.

    You could add the time difference in flow as screenshot below:

    Capture.PNG

     

    The expression in the flow is as below if the time difference is 1 hour:

    addHours(item()?['Date'],1)

    The expression in the flow is as below if the time difference is 1 day:

    addDays(item()?['Date'],1)

     

     

    Best regards,

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow