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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,956)