web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow Get Items output ...
Power Automate
Answered

Flow Get Items output from SharePoint calculated data column showing wrong date?

(0) ShareShare
ReportReport
Posted on by

Hi,

 

Bit of a brain twister this one!


I have these three columns within a SharePoint list:

 

flow1a.jpg


"Next Review Date" is a calculated column that takes the value from "Last review date" and add the number of years shown in "Review Frequency" column.

 

The formula I am using is:

 

=DATE(YEAR([Last Review Date])+[Review Frequency],MONTH([Last Review Date]),DAY([Last Review Date]))

 

 

This works as you can see from screenshot; the next stage is that I am using Flow to look at the "Next review date" and send out an email if the date has passed.  The email contains a HTML table that has the "Next review date" displayed


I have "Get files (properties only)" control on the Flow, if I look out the output from the control the date for the column "Next Review Date" is an hour out which makes the date a whole day out:

 

Flow2.jpg

 

Because this date is wrong the date the table in the email displays incorrect information.  The column setting in SharePoint are set to "Date Only" but as you can see the time is still showing.

 

I am sure this is probably some UTC vs UTC+1 (which is my time zone) issue but is there anything I can do in Flow to manipulate the date so it's correct?

 

Thanks in advance

Rob

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Rob_CTL 

    If its always giving 1 hour extra, so maybe in Power Automate, you can take that time and subtract 1 hour from it.

    Use addHours Function:

     

    addHours('2019-10-28T10:10:00Z', -1,'yyyy-MM-ddTHH:mm:ssZ')
    
    will return 
    
    '2019-10-28T09:10:00Z'
  • Rob_CTL Profile Picture
    on at

    @Sundeep_Malik thanks for the reply, to get around the problem I've used your idea and added the following expression to Select control that is used by the HTML table control

     

    flow3.jpg

     

     

    addHours(item()?['Next_x0020_Review_x0020_Date'], 2, 'dd/MM/yyyy')

     

     

    I've added 2 hours to make sure that it will always be clear of the change BST.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard