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 Pages / DatePicker Power Apps
Power Pages
Answered

DatePicker Power Apps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

i would like to limit the date picker so the user can choose only as dates within a one month range is possible?

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi, please take a look at this article: https://www.netwoven.com/2019/04/16/how-to-add-date-range-filter-controls-in-entity-list-in-dynamics...

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Have you solved your problem?

    Do you want to force the user to choose the date only among a month?

    Could you please tell me that how you configure this one month range?

    I assume that you have 2 separate Date Pickers and you want the dates selected to be among a month, right?

    I have made a simple test for you, please take a try as below.

    Set the OnSelect property of the second date picker as below:

     

    If(
     Month(DatePicker_EndDate.SelectedDate) <> Month(DatePicker_StartDate.SelectedDate),
     Notify(
     "Please keep the selected date within a same month!",
     Error
     )
    )

     

    If you just have a single date picker and you want to achieve this, please try as below:

     

    If(
     Month(DatePicker.SelectedDate) =9,// Custom the month as you expect
     Notify(
     "Please keep the selected date within a month!",
     Error
     )
    )
    

    In addition, not sure where do you want to configure this function, if you really want to configure this in Portal, please check the reply from @OliverRodrigues.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Good afternoon it worked, but I need you not to allow selecting a date longer than 3 months!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 33

#2
sannavajjala87 Profile Picture

sannavajjala87 28 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 22 Super User 2026 Season 2

Last 30 days Overall leaderboard