Dear Power Apps Community,
The data for my Canvas App is sourced from an Excel file (.xlsx). This is a one-time (per App session) import process; once the data is in App, it is worked on within collections, etc. The Excel data needs to be directly from a standalone Excel file and not 'connected' via/to Excel Online due to the number of rows.
The issue I'm having is that to select the segment of the data the user needs to work with, they need to pick from a dropdown with a date and a second dropdown with a time. Those date and time values are fetched from the Excel file data source ('Distinct' from a Date column and a Time column).
The Excel file datasource is an export from a vast database and I want to try and avoid the end user having to manually apply formatting to the source data to avoid errors. But what I'm not sure on is how to restrict the 'Date' dropdown in Power Apps to only show the date, and the 'Time' to only show the time. Currently what I'm getting is:
Date Dropdown: dd/mm/yyyy tt:tt
Time Dropdown: dd/mm/yyyy tt:tt
This should be:
Date Dropdown: dd/mm/yyyy
Time Dropdown: tt:tt
In Excel I have inspected the formatting of the source columns. For date, this is "Category: Custom" and in type, "dd-mmm-yy".
For time, this is hh:mm.
So, in Excel, the formatting of the cells appears accurate in the formatting desired - as if Power Apps is forcibly adding time to date and date to time respectively.
I've added some screenshots of the dropdowns in the App and the formatting from Excel for the date column and time column.
Thank you very much for your help Power Apps community,
Edd