Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Add date field from Excel to form without time

(1) ShareShare
ReportReport
Posted on by 33

I am building an app from scratch using an Excel spreadsheet table in OneDrive as my data source. One of my fields contains a date, and when I add this field to my form by clicking the "eye" I get three data entry boxes -- one for date, one for hour, and one for minute. I don't need or want the hours or minutes, just the date, with a calendar control. I can't figure out how to get rid of the extra hours and minutes boxes (except by resizing them so that they're invisible). How do I edit the properties to get what I want?

  • David_Schrag Profile Picture
    33 on at
    Re: Add date field from Excel to form without time

    @diegocruzb96 No, I gave up on that project years ago. I don't even remember what I was trying to do.

  • diegocruzb96 Profile Picture
    22 on at
    Re: Add date field from Excel to form without time

    Hi, did you find the solution?

  • ngabougaifan Profile Picture
    54 on at
    Re: Add date field from Excel to form without time

    Hi. Not only I want to remove the time control but I don’t want it to be included when I submit to Excel, I want only the date. How can I do it ?

  • Sajarac Profile Picture
    3,261 on at
    Re: Add date field from Excel to form without time

    Hello there, sorry silly question

     

    in one of your samples you have a field "DateCreated" how can I insert labels that show in the form like this:

     

    =Datecreated + 24  

    =Datecreated + 30

    =Datecreated + 37

     

    what I am trying to do is to setr 3 labels that show datecreated plus 24 days = green, plus 30 days = Yellow, plus 37 days = Red

     

    Thanks in advance for your response

  • v-micsh-msft Profile Picture
    on at
    Re: Add date field from Excel to form without time

    Hi David_Schrag,

     

    If you generated the App from your Excel file directly, then we need to unlock under Advanced to modify the property, select the control that you would like to modify first, then unlock it under Advanced, after that, scroll down to the bottom, under Design part, click more Options, then the bottom three is the visible propety, change its value to false should make it disappear.

    Capture.PNG

    56.PNG

    If you have any further questions, please post back.

    Adding some reference:

    Understand data forms in Microsoft PowerApps

    Regards

  • Meneghino Profile Picture
    6,949 on at
    Re: Add date field from Excel to form without time

    Hi @David_Schrag

     

    Just a couple of thoughts:

     

    1) Be careful with dates in Excel, see this post  I strongly recommend saving a dates as text in format "yyyy-mm-dd"

     

    2) My personal opinion is that as soon as you start to customise edit or display forms, you are much better off not using forms but building you own using the single controls and submitting data changes via Patch actions

     

    Happy to give advice on both if needed

  • jlarsen81 Profile Picture
    51 on at
    Re: Add date field from Excel to form without time

    You could selet the item in question, go into the Display Properties under the Advanced Menu, the third option from the bottom is 'Visible', change this to "false" for each item you would like to remove from view.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard