cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

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

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
Highlighted
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
Microsoft
Microsoft

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

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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (8,664)