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 / 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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard