cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

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


 

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

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 Kudoed Authors
Users Online
Currently online: 171 members 5,677 guests
Please welcome our newest community members: