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

Community site session details

Session Id : RnyNLAnsbUCWF+JXyIPXNY
Power Apps - Microsoft Dataverse
Answered

Only show time of a Date-Time field in a View in a model driven-application

Like (0) ShareShare
ReportReport
Posted on 30 Mar 2021 16:43:41 by 64

Hey, in the View of my table I have two fields that keep record of start- and end time. They're the field type Date-Time. In my model-driven View I want them to show as "hh:mm" instead of "DD-MM-YYYY hh:mm" (see picture). I think I'll need a script to edit this, but I'm not familiar with the lines of code that are needed to change this.

Can someone show me how to edit this or show me a similar example, thank you 

  • Verified answer
    ChrisPiasecki Profile Picture
    6,397 Most Valuable Professional on 30 Mar 2021 at 20:27:55
    Re: Only show time of a Date-Time field in a View in a model driven-application

    Hi @mvdb ,

     

    Apologies, I misread your original post. What you can do is add another field that is of type text and copy just the time portion from your date field into it (you can do this via a Flow) and use that field in your view. It's not the most elegant but it can be achieved without code.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • mvdb Profile Picture
    64 on 30 Mar 2021 at 19:09:00
    Re: Only show time of a Date-Time field in a View in a model driven-application

    Hey @ChrisPiasecki 

    Thank you for your effort, but I can't achieve the hoped outcome with your method. I would like to only show the time notation and don't show the date notation at all. I added an image to clarify: the first three rows is how I would like to see it displayed (I changed it with the Google Chrome inspect-tool) and the last three rows is how the fields are displayed at the moment.

  • ChrisPiasecki Profile Picture
    6,397 Most Valuable Professional on 30 Mar 2021 at 16:57:00
    Re: Only show time of a Date-Time field in a View in a model driven-application

    HI @mvdb ,

     

    You can change your personal preferences for date time format display.

     

    In your model-driven app, navigate to the gear icon in top right > Personalization Settings

    ChrisPiasecki_2-1617123408739.png

     

     Select the Formats tab > Under the Current Format dropdown, click Customize.

    ChrisPiasecki_1-1617123338439.png

     

    Set your desired Time and Date preferences under the respective tabs.

     

    ChrisPiasecki_0-1617123307707.png

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete