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 / Define datepicker defi...
Power Apps
Answered

Define datepicker defined on other datepickers

(0) ShareShare
ReportReport
Posted on by 48

Hi everyone,

 

We are looking into changing some of our Excels/Access-files into Powerapps.

 

In this case we also have some date-fields, that would automatically update when defining other dates.


Let's say for example that we have date X, which is defined when choosing date Y, but plus 30 days.

 

It is formatted like this in the Powerapp: 

AB__0-1642773945713.png

 

And beyond that, if for example date Y is then also based on field Z, how do we configure that?

 

Thanks in advance, we're really struggling with this :).

 

 

 

 

 

Categories:
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AB_ 

     

    Set the DefaultDate of Y date picker to

    DateAdd(DatePickerX.SelectedDate,30,Days)

    Example

    StalinPonnusamy_0-1642775304415.png

     


    Thanks,
    Stalin - Learn To Illuminate

     

  • AB-18111337-0 Profile Picture
    48 on at

    @StalinPonnusamy That works, thanks!

     

    However, I got still one question.

     

    I have one field that uses a 'number' value. This is needed to define the days needed to make an internal evaluation, which depends on what is asked.

     

    So I need a date field (say for example Z) that automatically takes the date from Datepicker Y, but reduces it with the value chosen in the 'number' field.

     

    Anyone got an idea? I was thinking the same code, but - value(thisfield.numberfield);days. However, it doesn't give an error, but it doesn't work either :).


    Thanks in advance!

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AB_ 

     

    if you want to reduce some number from the date field (Similar formula but minus)

     

    DateAdd(DatePickerY.SelectedDate,-Dropdown1.Selected.Value,Days)

     

    Sample

    StalinPonnusamy_0-1643034543596.png

     


    Thanks,
    Stalin - Learn To Illuminate

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard