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 Apps / Convert text to date a...
Power Apps
Unanswered

Convert text to date and time , than calculate date diff in hours

(0) ShareShare
ReportReport
Posted on by 159

I have a data connection to an external data and receive a column in this text format 02/13/2024 20:15:00. Unfortunately the field is text formatted.

I need to make some calculation with this text.  I believe first  i need to convert to date time format and then I need to calculate the difference between Now() and this column measure in hours.

 

Can anybody help me with a solution?

Thank you

 

Categories:
  • realwillwright Profile Picture
    772 Moderator on at

    Hi @ciprianpopovici 

     

    You should be able to use the DateTimeValue function to convert to a date DateValue, TimeValue, and DateTimeValue functions - Power Platform | Microsoft Learn

     

    And then DateDiff to find the difference 

    DateAdd, DateDiff, and TimeZoneOffset functions - Power Platform | Microsoft Learn

     


    -------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard