cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vignesh_M
Level: Powered On

How to get hours from datetime field in Flow? Pls help

I need to get the hours from the date time field in ms flow, pls help
2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: How to get hours from datetime field in Flow? Pls help

Hi @Vignesh_M 

 

Use expression formatdatetime and then get the hour (hh) information

formatDateTime(utcNow(),'hh:mm tt')
 

Regards,

Reza Dorrani

 

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

Highlighted
Community Support Team
Community Support Team

Re: How to get hours from datetime field in Flow? Pls help

Hi @Vignesh_M ,

 

If you want set the set minutes default to 0, you could take a try with expression below:

formatDateTime(utcNow(),'yyyy-MM-ddTHH:00:ssZ')

 

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

3 REPLIES 3
Dual Super User
Dual Super User

Re: How to get hours from datetime field in Flow? Pls help

Hi @Vignesh_M 

 

Use expression formatdatetime and then get the hour (hh) information

formatDateTime(utcNow(),'hh:mm tt')
 

Regards,

Reza Dorrani

 

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

Vignesh_M
Level: Powered On

Re: How to get hours from datetime field in Flow? Pls help

thank you for the solution. One more question how to set minutes  default to 0 'zero' in MS FLOW.


@RezaDorrani wrote:

Hi @Vignesh_M 

 

Use expression formatdatetime and then get the hour (hh) information

formatDateTime(utcNow(),'hh:mm tt')
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly


 

Highlighted
Community Support Team
Community Support Team

Re: How to get hours from datetime field in Flow? Pls help

Hi @Vignesh_M ,

 

If you want set the set minutes default to 0, you could take a try with expression below:

formatDateTime(utcNow(),'yyyy-MM-ddTHH:00:ssZ')

 

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

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,750)