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 / Require correct Dateti...
Power Apps
Unanswered

Require correct Datetime format in text

(0) ShareShare
ReportReport
Posted on by

I would like to throw an error every time users miss to fill out the correct datetime format.

 

I have a text field named txtCaseCreate then it throws the value to a label which is hidden (lblCaseCreateHidden). The Update property of the data card is lblCaseCreateHidden.Text

 

Default property of lblCaseCreateHidden: 

Text(DateTimeValue(txtCaseCreate.Text), "mm/dd/yyyy hh:mm:ss AM/PM")

 

Scenario:

User enters 03/01/202 12:27:50 AM in text field. This shouldn't be saved or should throw an error message stating check date time format as the date is incorrect 03/01/202. It should be 03/01/2022. 

Categories:
  • Guy Boswell Profile Picture
    234 on at

    Replace the text box input with a date picker input -= that way they can only enter a valid date

     

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 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard