cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
David_Schrag
Level: Powered On

Add date field from Excel to form without time

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?

5 REPLIES 5
jlarsen81
Level: Powered On

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.

Meneghino
Level 10

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

Community Support Team
Community Support Team

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sajarac
Level 8

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

ngabougaifan
Level: Powered On

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 ?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,883)