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

Make DateTime from another Date

Hi, 

 

Please help

 

I have a datetime field StartDate. How to make a datetime with date of StartDate but Time always 18:00?

 

And How to get difference with this two datetimes?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @shnurich 

 

There are lots of threads around this in community. Please see below.

 

Solved: how to get difference between two dates in flow - Power Platform Community (microsoft.com)

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

3 REPLIES 3
abm
Super User
Super User

Hi @shnurich 

 

Use formatDateTime(StartDate, 'yyyy-MM-dd 18:00')

 

Are you looking to get number of days as the difference between two dates?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Thank U, its so easy...)

 

No, I am looking to get number of minutes between two datetimes

For Example 11/08/2021 14:33 and 11/08/2021 18:00

Hi @shnurich 

 

There are lots of threads around this in community. Please see below.

 

Solved: how to get difference between two dates in flow - Power Platform Community (microsoft.com)

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,653)