cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
Helper I
Helper I

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.

Highlighted
Community Champion
Community Champion

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

Highlighted
Community Support
Community Support

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.
Highlighted
Kudo Kingpin
Kudo Kingpin

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

Advocate I
Advocate I

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
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,511)