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 validation in a f...
Power Apps
Answered

Date validation in a form with textcolumn from sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

 

I got these 3 text columns from sharepoint list where me and my collegues copy/paste in date and time from another system with just text.

 

Now I want to make a validation in powerapps that makes so my collegues cant insert the date/time in the wrong order.

 

Wrong:

DatwWrong.PNG

Correct:

DatwCorrect.PNG

 

I tried with this formula but its missing a numbervalue. I suspect it's because it wants a date/time value but gets a Text value.

If('logg'.'Received'>'logg'.'Assigned';Notify("Wrong date")

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,374 Most Valuable Professional on at

    Hi @Anonymous ,

    Assuming your colleagues know how to type in valid date structures, you need to refer to the controls (Text Inputs) - so

    If(
     DateValue(ReceivedTextName.Text)> DateValue(AssignedTextName.Text);
     Notify("Wrong date",Error)
    )

     

    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.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz I tried this, the code wont give any errors, but I can still submit the form and it gives no errors when it should?

     

    DateTimeerror.png

  • Verified answer
    WarrenBelz Profile Picture
    155,374 Most Valuable Professional on at

    @Anonymous ,

    There is nothing wrong with the code providing the dates are in a proper format (or else it simply will not produc e any checking result).

    May I suggest you use data and time fields with the standard date/time Power Apps controls. That is the only way you are going to control this as users can enter anything that looks like a date to them, but it will not trigger this logic unless in acceptable format.

     

    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.

  • WarrenBelz Profile Picture
    155,374 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard