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 stored in Excel f...
Power Apps
Unanswered

Date stored in Excel file was being formatted correctly, but 2 days later without any edits the format changed and appears broken?

(0) ShareShare
ReportReport
Posted on by 13

A few days ago I set my app up to submit some data including a date stamp to an Excel file. Without making any additional changes to my app, it seems to have switched which format the date is stored in, which has thrown a monkey wrench into how I display that date going forward.

 

My form has a DatePicker which defaults to Today(). When I initially created my App 2 days ago, it was storing the date in the following format:

 

2021-10-08T07:00:00.000Z

 

 

This date/time format was recognized by other aspects of my app. For example, I have a gallery which shows the date stamp with the following formula:

 

Text(ThisItem.'Date Created',DateTimeFormat.ShortDate)

 

 

Which correctly showed the above date as "10/8/21".


 

Today (2 days later), I opened up my project without making any edits, and everything seems broken?

 

In my gallery, the date is now being displayed as "2021-10-08T07:00:00.000Z" instead of "10/8/21".

 

Also when I try to submit a new entry, the stored data format has been changed to this:

 

1633849200000

 

 

But the kicker is; my app doesn't even recognize this new number as a date format... Viewing this new entry on my gallery, it will show the date as "1633849200000"...

 

And as mentioned above, the original entries are still not being shown as a short date. They're just pulling through as the raw data (despite the Text formula with a date format).

 

PowerAppsWeirdness.png

 

Categories:
  • Funk-E-Guy Profile Picture
    13 on at

    I'm not sure how or why, but I made the following SUPER HACKY edits which have "fixed" the issue (I don't really consider it fixed, but it's at least displaying the correct data now.

     

    1. My form submission screen was using a date picker that defaulted to "Today()". I changed this from a Date Picker to a Text Input, still defaulting to "Today()"  -  This seems to submit the date to Excel as an Excel date (i.e. 44479 for "10/10/2021")
    2. On my gallery, I convert this Excel Date format to UNIX date/time with the following formula:
    Text((ThisItem.'Date Created'-25568)*86400000,DateTimeFormat.ShortDate)

     

    WHY CAN'T I JUST STORE THE DATE AND RETRIEVE THE DATE NORMALLY????

  • WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @Funk-E-Guy  ,

     

    Dates and Excel do not play nicely - the two best solutions that I know

    1. Store as Text     
      Text(YourDate,"dd/mm/yyyy")
      ​and retrieve as
      DateValue(YourDateField)
    2. ​Change to SharePoint

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard