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 / Date format in an Exce...
Power Apps
Unanswered

Date format in an Excel datasource file altered by PowerApps

(0) ShareShare
ReportReport
Posted on by 8

I used the template "Leave Request" and customized it for our needs but the datasource is still the original excel file in my OneDrive and shared with the users. Our location is in French Canada.

 

I was almost ready for a GoLive with this App but during a stress test with multiple users testing it with multiple inputs, an issue occured at two different location :

- The first one is on the sheet "Leave" where the cells StartDate and EndDate that had the default format to Custom with a value like "2019-03-28 04:00:00" then the format has been changed to General with a value like "4.3536E+14". When i set the format back to what is was originally i got now "##############" or "434672083333333". I had to restore the file with previous version to get the right format with the right value.

- The second one is on the sheet "Holidays, where the column StartDate (renamed as OffDate) got its format changed from Date with the value "2019-04-19" to General with the value "43574". For this one if i set back the format to Date i got well the right value and no need to get a restore from a previous version.

 

The StartDate and EndDate from the Leave Value are data sent by PowerApps to the excel file regarding the user's input. So i could understand there is some criteria on the user side that could influent how the data is transfered even if for a same user the date transfered from his input were correct and then for X reason the data format is altered.
On the other side, the StartDate (renamed as Offdate) from the sheet Holiday are data that are only read by PowerApps and then there is no write normally so don't understand either why it is altered after. 

 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @sx-vvoisin ,

    Could you please share a bit more about the StartDate and EndDate column in your Excel table? Are they both Date type columns?

    Which type value do you pass from your app to the StartDate and EndDate column in your Excel table? Date time values?

     

    Based on the needs that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The date time values passed from my app is stored properly within my Excel table.

     

    Please make sure that the values you saved from your app match the data type of StartDate and EndDate column of your Excel table. E.G. If StartDate and EndDate column are both Date time columns within your app, you should pass the date time values to them from your app.

     

    In addition, you could also consider take a try to create two normal text columns (for StartDate and EndDate column) in your Excel table to store the date time values passed from your app.

     

    If the issue still exists, please consider take a try to re-create a Excel table, then re-generate an app based on this Excel table, check if the issue still exists.

    Note: Please make sure you have formatted the data in your Excel file as a Table properly.

     

    Best regards,

  • sx-vvoisin Profile Picture
    8 on at

    Thank you @v-xida-msft for your comment.

    StartDate and EndDate columns had the original format "Custom" with value like "2019-03-28 04:00:00". 

    From the App, the user select a LeaveStartDatePicker and a LeaveEndDatePicker with the property "DateTimeZone" set as "DateTimeZone.Local" and "Format" as "DateTimeFormat.ShortDate".

    Your suggestion to change the column format makes me realized that i don't really need to see the time part "04:00:00" so i just changed the format to simply "Date" with value like "2019-04-29" and i am going today again a stress test with multiple users completing requests to see the behavior. 

    Keep you posted.

     

  • sx-vvoisin Profile Picture
    8 on at

    So even if i set in the excel the columns StartDate and EndDate as Date "2019-04-25", each time a user complete a request in the App, the date arrives in the excel file as "2019-04-25 04:00:00" while in the App the format of DatePicker is set to Shortdate (See the attachments).

    Thanks,

    SelectedDate sent by the App.png
    Date Format in the App.png

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
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard