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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 475

#2
WarrenBelz Profile Picture

WarrenBelz 387 Most Valuable Professional

#3
11manish Profile Picture

11manish 289

Last 30 days Overall leaderboard