cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bolin-stratus
Post Patron
Post Patron

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

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

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

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

View solution in original post

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (27,031)