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 / Need help with my firs...
Power Apps
Answered

Need help with my first project - need Datepicker with first/last day of month

(0) ShareShare
ReportReport
Posted on by 55

Hello,

 

i want to show date in gallery - for this i want to create a datepicker and select the first day of this month and an datepicker with the last day of this month selected.

 

Thanks a lot for your help.

Categories:
  • KvB1 Profile Picture
    1,596 on at
  • PowerSäm Profile Picture
    775 on at

    Hi @pleibling ,
    this will probably help you. You can simply download the component and paste it into your PowerApps. This is a DatePicker with several options.

     

    https://www.youtube.com/watch?v=pl1YoItT1VM

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Write this in Datepicker1 DefaultDate Property:

     

    Date(Year(Now()), Month(Now()), 1)

     

    Write this in Datepicker2 DefaultDate Property:

     

    DateAdd(
    DateAdd(
    Date(Year(Now()),Month(Now()),1),
    1,
    Months
    ),
    -1,
    Days
    )

  • pleibling Profile Picture
    55 on at

    Thanks for your help, but i want to try it first with built in options. Thanks.

  • pleibling Profile Picture
    55 on at

    Many thanks for your fast reply - i try this, but it doesn't work. I add an Datepicker called Datepicker1 and at DefaultDate i insert: Date(Year(Now()), Month(Now()), 1)

     

    But it show me an error. If i try it own and wrote today(), this works and it show this possibility with autocompletion - if i wrote date( there show no autocompletion. I try to inser date(1974,12,10) but gets to an error.

     

    Whats the error? Did i have to set something other?

  • pleibling Profile Picture
    55 on at

    Looks like this:date.png

  • Verified answer
    pleibling Profile Picture
    55 on at

    This works for me:

     

    DatePicker1 (From):

    Date(Year(Now()); Month(Now()); 1)

     

    DatePicker2 (To, Today default):

    Today()

     

    Get Items in Gallery until this Time:


    Filter(
    'DataSource';
    (Date_column_in_datasource >= DatePicker1.SelectedDate) && (Date_column_in_datasource <= DatePicker2.SelectedDate)
    )

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard