cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kirill-PRG
Level: Power Up

How to add certian time to date with flow

Hi there,

I am trying to maky flow, where I after filling a form I will make an item in the list with dates which were given in form and I will add certain time to these dates. It is my work arounf to make events in SharePoint calendar which will have all vacations.

 

I have problem with time zones I guess, because right now my flow is almost correct, as long as in log I have corect Outputs, but unfortunately data are not correct in the list.

 

This is my Output:

 

output.png

 

And this is data in SharePoint list:

 

data-list.png

 

Here is my flow:

flow.pngflow1.png

 

 

I am not sure, where I have mistake... I checked SharePoint timezone and it is UTC+1...

 

Thank you for help.

Kirill

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to add certian time to date with flow

Hi @Kirill-PRG ,

 

Do you mean you want to cut back 2 hours in the sharepoint list date which is created from the form?

 

If yes, you could refer to my steps below to cut back 2 hours:

1.png

 

The expression for the Od column should as below and please replace the Convert time zone with yours:

addHours(body('Convert_time_zone'),-2)

The expression for the Do column should as belowand please replace the Convert time zone with yours:

addMinutes(addHours(body('Convert_time_zone'),21),59)

 

Please let me know if your problem could be solved.

 

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
Community Support Team
Community Support Team

Re: How to add certian time to date with flow

Hi @Kirill-PRG ,

 

Do you mean you want to cut back 2 hours in the sharepoint list date which is created from the form?

 

If yes, you could refer to my steps below to cut back 2 hours:

1.png

 

The expression for the Od column should as below and please replace the Convert time zone with yours:

addHours(body('Convert_time_zone'),-2)

The expression for the Do column should as belowand please replace the Convert time zone with yours:

addMinutes(addHours(body('Convert_time_zone'),21),59)

 

Please let me know if your problem could be solved.

 

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

Kirill-PRG
Level: Power Up

Re: How to add certian time to date with flow

Hi @v-alzhan-msft ,

 

Thank you for your help. It works! Thank you to introducing me expressions in flow, never used them, but now I can see it is very useful Smiley Happy

 

Have a nice day!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 295 members 3,701 guests
Recent signins:
Please welcome our newest community members: