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 / First and Last Day of ...
Power Apps
Unanswered

First and Last Day of the Month and Quarter in Canvas Apps

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

If you are building a Canvas App and wonder how to filter galleries by items created on or after the first or the last day of a month or quarter, following may help you to save time:

 First Day of This Month

Set(FirstDayofThisMonth, DateAdd(Today(), -Day(Today())+1));

 

or

 

Set(FirstDayofThisMonth, Date(Year(Now()), Month(Now()),1));

 Last Day of This Month

Set(LastDayofThisMonth,  Date(Year(Now()), Month(Now()) + 1, 0));

 First Day of Next Month

Set(FirstDayofNextMonth, Date(Year(Now()), Month(Now()) + 1, 1));

 First Day of Last Month

Set(FirstDayofLastMonth, Date(Year(Now()), Month(Now())-1,1));

 First Day of This Quarter

Set(FirstDayofThisQuarter, Date(Year(Today()), RoundUp(Month(Today())/3,0),1));

 Last Day of This Quarter

Set(LastDayofThisQuarter,  Date(Year(Today()), RoundUp(Month(Today())/3,0)+3,0));

 First Day of Next Quarter

Set(FirstDayofNextQuarter, Date(Year(Today()), RoundUp(Month(Today())/3,0)+3,1));

 First Day of Last Quarter

Set(FirstDayofLastQuarter, Date(Year(Today()), RoundUp(Month(Today())/3,0)-3,1));


ps: There are multiple options shared by users across the forum. The above combines multiple approaches. 

Categories:
I have the same question (0)
  • vaubeee Profile Picture
    533 on at

    @MW nice Wrap-Up! Thanks for sharing 😊

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard