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 / Format DateDiff Field
Power Apps
Unanswered

Format DateDiff Field

(0) ShareShare
ReportReport
Posted on by 26

Good Afternoon,

  I am pulling Data into an App to show a DateDiff. The Field is pretty tough to read as it is formatted +0000000 00:00:00.00000 . Is there a way I could use ColumnAdd( )and format that field to display better?  This field is being pulled from an Oracle Database as varchars. 

Categories:
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @RichV ,

    Do you want to format your varchar field to a better displaying form?

    How do you format the “+0000000 00:00:00.00000” value? It will be better if you could give me the formulas or pictures.

    Could you describe more clearly about ‘display better’?

    I assume that ‘+0000000’ represents date, ’ 00:00:00.00000’ represents time. And make it display better like ’0418 12:00:00’(display the part of +0000000 00:00:00.00000),

    You could try this formulas:

            AddColumns('[dbo].[test412]',"fieldname2",Mid(fieldname,5,13))

    Here’s a doc about formatting values for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text

     

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for posting in the community @RichV . Can you review the above reply and update the thread with the requested information so we can review for a solution?

     

    Thank you,

     

    @Anonymous 

  • RichV Profile Picture
    26 on at

    Sorry I have not responded but have been out sick and forgot about this as other stuff came up when I came back into work. Attched is a Screenshot of the Code with the highlight showing the code. I also attached a Screenshot of some data showing what it looks like. 

     

    SQL.jpgData.jpg

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard