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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Datepicker validation ...
Power Apps
Unanswered

Datepicker validation - only numbers and dot in input field

(0) ShareShare
ReportReport
Posted on by 41

Hello to all,

is it possible to allow writing only numbers and a dot as validation in a date picker?

For example: 22.05.2024?


I dont want characters in the input field of a date picker

Marczii007_0-1714990114536.png 

Categories:
I have the same question (0)
  • VishalJhaveri Profile Picture
    1,167 Moderator on at

    No, I don't think so it is possible. @Marczii007 

  • WarrenBelz Profile Picture
    153,717 Most Valuable Professional on at

    Hi @Marczii007 ,

    You can set the Format of the Date Picker to

    "dd.mm.yyyy"

     if that is what you mean.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Marczii007 Profile Picture
    41 on at

    Sadly not. I dont want to type characters in the input of the datepicker. 

    The datepicker should handle exact like a normal input text field, where u cant type characters if u set the property format to

    TextFormat.Number

    the datepicker control seems to doesnt allow this behavior
  • WarrenBelz Profile Picture
    153,717 Most Valuable Professional on at

    Hi @Marczii007 ,

    I am a little unclear what you are trying to do here - if you want to enter numbers (for instance 06052024) into a Text Input, the Date conversion would be

    Date(
     Value(
     Right(
     YourInput.Text,
     4
     )
     ),
     Value(
     Mid(
     YourInput.Text,
     3,
     2
     )
     ),
     Value(
     Left(
     YourInput.Text,
     2
     )
     )
    )

    but a Date Picker needs a recognised format - I have tested 06052024 on a Date Picker and it does not seem to want to accept it manually, even with the Format at "ddmmyyyy"

  • Marczii007 Profile Picture
    41 on at

    I would like the date picker input field to only accept numbers + ".". No use of the calendar icon on the right side. Just write in a specific date manually

    First, I need to set isEditable to true so that I can write in the input field of DP. But the behavior of the inputfield doesn't seem to be like a normal textfield

  • WarrenBelz Profile Picture
    153,717 Most Valuable Professional on at

    @Marczii007 ,

    Just use a Text Input instead with the Update property I posted. This will also require some Validation.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 402

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 293 Super User 2025 Season 2

Last 30 days Overall leaderboard