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 II
Dual Super User II

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 II
Dual Super User II

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

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,726)