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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow with time, format...
Power Automate
Unanswered

Flow with time, format time from SharePoint

(0) ShareShare
ReportReport
Posted on by 13

Hello,

 

I want to send a e-mail at the endtime of an SharePoint list element. My problem is that Flow is handling the times in UTC+8 but i'm in UTC+1 so i have to subract 7 hours from the dynamic input endtime. (eg. When the user writes today 8:00AM in the endtime field, in the flow its then 3:00PM).

 

I can't use the time trigger from Flow, because the trigger is the creation of a new list element.

 

I don't know which programming language is used to achive this in Mircosoft Flow.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi AdrianP,

     

    I guess that you could use addhours function in your flow.


    Please check this documentation about Workflow Definition Language for more details:
    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    Best regards,
    Mabel Mao

  • AdrianP Profile Picture
    13 on at

    Hi, thank you for linking the documentation. 

     

    After some time i was certain that the code has to look somethink like this:

    @addhours(triggerBody()?['EndTime'], -7)

     

    But for some reason i get "String was not recognized as a valid DateTime" as an Error in Flow. (I also tried to add formatDateTime())

     

    I'm not really sure if i handle the input right. I used this in a similar flow like this:

    @equals(triggerBody()?['HasAttachment'], bool('true'))

    and this is working just fine.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard