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 / Time format Display fo...
Power Apps
Answered

Time format Display form Excel

(0) ShareShare
ReportReport
Posted on by 24

Hi all,

I have a start time and an end time in an Excel document.

If I let this come forward in a Gallery, there will be a date in addition to the time (wrong time). Example: Start 9:00 End: 10:00

 

How can I ensure that the correct time and only the time is displayed?

Schermafbeelding 2020-02-28 om 12.28.54.png
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at
    Please do this check. Enter a date in powerapps and submit it to excel and pull the date back to the gallery. Check if the date change or the same.
    Again I am seeing 1899 as the date in the gallery you showed. Is that the date in Excel?

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • RoyWaarts_NL Profile Picture
    24 on at

    Hi, Thanks for your quick response.

     

    I have no function in my power app to save a time in my excel document.
    I don't know how to make this yet.

     

    I have a agenda in Excel for my start and end time. See image. There is no date here, just a time. I would like the app to show only the time. So that when someone opens the app can see what time an item starts and ends.

    Schermafbeelding 2020-02-28 om 12.55.35.png
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @RoyWaarts_NL ,

    Do you want to only display time value regardless of date value in powerapps?

    Did you set your time field in Excel like this?

    3201.PNG

     

    If so, I've made a similar test and found that:

    if you directly use "ThisItem.start" in your gallery, it will show data like this:

    12/30/1899+time value.

    "12/30/1899" is the default date value of Excel in powerapps.

    I suggest you use Text function to format the data.

    You could set the label's Text like this:

    Text(ThisItem.start,ShortTime)
    //Text(ThisItem.fieldname,ShortTime)
    Text(ThisItem.end,ShortTime)

    Then the label will only display time value.

    3202.PNG

     

    Here's a doc about Text function for your reference:

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

     

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard