web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

On blank date also datepicker showing red border

(0) ShareShare
ReportReport
Posted on by 8
If(
!IsBlank(DataCardValue22.SelectedDate) &&
!IsMatch(
Text(DataCardValue22.SelectedDate, "[$-en-GB]d/m/yyyy"), // Convert date to text and check format
"^\d{1,2}/\d{1,2}/\d{4}$" // Match d/m/yyyy or dd/mm/yyyy format
),
Color.Red, // Red color for invalid date format
Color.Transparent // Transparent color for valid or blank dates
)  
 
 
On blank date field its showing red border .It should show red border when date is incorrect like 'sdfghj' or not d/m/yyyy format
 
I have the same question (0)
  • Verified answer
    ronaldwalcott Profile Picture
    3,827 Super User 2025 Season 2 on at
    On blank date also datepicker showing red border
    Are you sure that the date field doesn't have a default value?
  • SM-13110653-0 Profile Picture
    8 on at
    On blank date also datepicker showing red border
    on default property parent.deafult is there

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard