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 / PowerApps Date Picker
Power Apps
Answered

PowerApps Date Picker

(1) ShareShare
ReportReport
Posted on by 21
I have a PowerApp with a date picker, to choose a date for items which show in a gallery.
 
I'm trying to have two separate buttons on the same screen to change the value in the date picker, rather than clicking the date picker and manually choosing the date. I just need a "Today" button and a "Yesterday" button (other dates will be manually selected as usual in the picker), to make it more user friendly.
 
I'd have thought this is fairly simple using the "OnSelect" for each button to change the value in the date picker, unless I am missing something (I'm fairly new to PowerApps).
 
Can anyone guide me please? Thank you :)
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,442 Super User 2025 Season 2 on at
    Hi,
     
    In the OnVisible Property of the Screen add this
     
    Set(DefaultDateValue, Today()); // have it default to today or Yesterday doesnt matter
     
    In the DefaultDate Property of the Picker Put DefaultDatevalue
     
    in the Buttons Onselects
     
    Either put
    Set(DefaultDateValue, Today());
    Or
    Set(DefaultDateValue, DateAdd(Today(), -1,); // note days is the Default increment to add
     
    and now it will do what you said.
  • tonythetiger Profile Picture
    21 on at
    Thank you! Knew it would be simple :)

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard