web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / convert string to date...
Power Automate
Unanswered

convert string to datetime

(0) ShareShare
ReportReport
Posted on by

Im making a virtual agent and I want the user to write time (ex. 07.00) that goes into power automate. I only need the time to count  hours and not the date.

How can I count hours between two strings?

Can i convert it into datetime without the date?

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Yes, you can omit the date parts in the format string. 

     

    How to customize or format Date and Time values in a flow - Power Automate | Microsoft Learn

     

    hours between strings can be done in a multitude of ways.  Here's one How to calculate difference between two times in Power Automate (tomriha.com)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard