cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cooper33
Level 8

PowerApps form for SharePoint list accepting and converting invalid dates

I have a Date only field on a SharePoint list. I use the date picker control in PowerApps. I noticed that when the user doesn't use the picker feature and just types a date, there's no validation to make sure this date is real.

When I type in 2/30/2019, the date submits. The DataCardValue.SelectedDate value is actually 3/2/2019 which is also how it's recorded in SP. I guess is correct but I only want users to be able to type real dates so that there's no mismatch between entry and recorded value

Is there any function to catch this invalid date on the PowerApps side?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: PowerApps form for SharePoint list accepting and converting invalid dates

Hi @cooper33 ,

Do you want to check if the typed date value (not picked Date value) is valid within the DatePicker control?

 

Currently, within PowerApps, there is no function supported to check if a Date value is valid. If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: PowerApps form for SharePoint list accepting and converting invalid dates

Hi @cooper33 ,

Do you want to check if the typed date value (not picked Date value) is valid within the DatePicker control?

 

Currently, within PowerApps, there is no function supported to check if a Date value is valid. If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,305)