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 / Canvas App - Collectio...
Power Apps
Answered

Canvas App - Collection Field Showing Invalid Dates in the Collections Preview?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a canvas app using a SP List data source and I discovered that the Close Date when viewed in the Power Apps dev tool is displaying as an "Invalid Date" even though the date works in the app and displays like 3/2/2021 or 10/25/2021.  The example code is shown below.  I add a new column "Active" which is set to Yes or No depending on a date comparison.  Is this occurring because my dates are displaying as 3/2/2021 instead of 03/02/2021?  

// Show select columns and add an Active column to represent if a deal is active Yes/No
ClearCollect(colDashboardActiveDI, AddColumns(ShowColumns('Deal-Intake-App', "Title", "Close_x002d_Date", "SFDC_x002d_Opp_x002d_Name", "SFDC_x002d_Opp_x002d_ID" ), "Active", If(Close_x002d_Date > Today(), "Yes", "No")) );


Collections Issue - INVALID DATE.PNG
SP List date column - date-time.PNG

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@bolin-stratus,

    Do you mean that the Close Date works great in the Power Apps app, but mot in the preview mode from the formula bar?

    Actually, it it an known issue that would not affect your result.

    If the result works great in your app, you could use it without error.

    Hope it could help.

    Regards,

    Qi

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-qiaqi-msft - Thank you for your response. I was not aware of that bug. 

  • Anmol_Raut Profile Picture
    2 on at

    I was facing similar problem when I was replaced on a ongoing project by my colleague. Any formula related to date was showing invalid date. I searched alot but didn't got any solution. I did my own R&D and finally got the solution. This is basically due to a power app feature which was turned ON for the this particular. This feature is still in development mode so contains a lot bug so not adviced to use. To turned Off this feature go to settings of that app ,then advanced settings and search "enhanced formula bar" and turned off this feature then save the app and reload the page and you are good to go.

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard