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 / On blank date also dat...
Power Apps
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
 
  • Verified answer
    ronaldwalcott Profile Picture
    3,914 Moderator on at
    Are you sure that the date field doesn't have a default value?
  • SM-13110653-0 Profile Picture
    8 on at
    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

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 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard